Click here to Skip to main content
15,889,767 members
Home / Discussions / C#
   

C#

 
QuestionCode for Restart Console Application Pin
Serpendiem1-Jun-09 16:37
Serpendiem1-Jun-09 16:37 
GeneralRe: Code for Restart Console Application Pin
Calla1-Jun-09 19:37
Calla1-Jun-09 19:37 
QuestionHow to store a large number of XML to the MSSQL200 database in a field Pin
cady_4001-Jun-09 15:15
cady_4001-Jun-09 15:15 
AnswerRe: How to store a large number of XML to the MSSQL200 database in a field Pin
Christian Graus1-Jun-09 19:38
protectorChristian Graus1-Jun-09 19:38 
Questionis it bug of the microsoft?(about multilanguage) [modified] Pin
yuwenxiang1-Jun-09 14:59
yuwenxiang1-Jun-09 14:59 
QuestionC# TCP Close Socket Question Pin
Serpendiem1-Jun-09 13:43
Serpendiem1-Jun-09 13:43 
AnswerRe: C# TCP Close Socket Question Pin
Luc Pattyn1-Jun-09 14:41
sitebuilderLuc Pattyn1-Jun-09 14:41 
Question[Message Deleted] Pin
Star091-Jun-09 13:08
Star091-Jun-09 13:08 
AnswerRe: Can't Add a Row ( Access DB) Pin
Christian Graus1-Jun-09 13:10
protectorChristian Graus1-Jun-09 13:10 
AnswerRe: [Message Deleted] Pin
Colin Angus Mackay1-Jun-09 13:21
Colin Angus Mackay1-Jun-09 13:21 
QuestionC# TCP Cycle Pin
Serpendiem1-Jun-09 12:42
Serpendiem1-Jun-09 12:42 
AnswerRe: C# TCP Cycle Pin
Jimmanuel1-Jun-09 14:42
Jimmanuel1-Jun-09 14:42 
Questionpda(push down automata) Pin
chavir1-Jun-09 12:00
chavir1-Jun-09 12:00 
AnswerRe: pda(push down automata) Pin
Christian Graus1-Jun-09 12:22
protectorChristian Graus1-Jun-09 12:22 
Questionpda automata Pin
chavir1-Jun-09 11:57
chavir1-Jun-09 11:57 
AnswerRe: pda automata Pin
Pete O'Hanlon1-Jun-09 12:07
mvePete O'Hanlon1-Jun-09 12:07 
GeneralRe: pda automata Pin
chavir1-Jun-09 12:54
chavir1-Jun-09 12:54 
GeneralRe: pda automata Pin
Christian Graus1-Jun-09 12:59
protectorChristian Graus1-Jun-09 12:59 
GeneralRe: pda automata Pin
Pete O'Hanlon1-Jun-09 21:42
mvePete O'Hanlon1-Jun-09 21:42 
GeneralRe: pda automata Pin
Panorama1416-Jan-10 22:11
Panorama1416-Jan-10 22:11 
AnswerRe: pda automata Pin
Christian Graus1-Jun-09 12:23
protectorChristian Graus1-Jun-09 12:23 
QuestionCreating a Panel from with in a class Pin
Gary Strunk1-Jun-09 11:51
Gary Strunk1-Jun-09 11:51 
AnswerRe: Creating a Panel from with in a class Pin
Luc Pattyn1-Jun-09 12:19
sitebuilderLuc Pattyn1-Jun-09 12:19 
AnswerRe: Creating a Panel from with in a class Pin
Satish Pai1-Jun-09 18:19
Satish Pai1-Jun-09 18:19 
QuestionDrop Down List Issue Pin
sebogawa1-Jun-09 11:47
sebogawa1-Jun-09 11:47 
I have part of my app which enumerates all video camera devices present and presents them in a drop down list. I have two Logitech web cams which have the same name, but when I click on the drop down button, only one of the cameras are listed. How do I make it so that both are displayed? If possible, how can I add a number or ideally a port number to differentiate the two instances of the web cams?

This is my code:

<pre>
   public MainForm()
            {

                  InitializeComponent();

                  // collect cameras list

                  try
                  {
                        // enumerate video devices
                        videoDevices = new FilterInfoCollection(FilterCategory.VideoInputDevice);



                        if (videoDevices.Count == 0)
                              throw new ApplicationException();



                        // add all devices to combo
                        foreach (FilterInfo device in videoDevices)
                        {

                              camerasComboLeft.Items.Add(device.Name);
                              camerasComboRight.Items.Add(device.Name);
                        }



                        camerasComboLeft.SelectedIndex = 0;
                        camerasComboRight.SelectedIndex = 0;
                  }


                  catch (ApplicationException)
                  {

                        camerasComboLeft.Items.Add("You ain't got no LEFT CAMERA son!");
                        camerasComboRight.Items.Add("You ain't got no RIGHT CAMERA son!");

                        videoDevices = null;

                  }


                  EnableConnectionControls(false);


            }

            .... rest of the app

</pre>

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.