Click here to Skip to main content
15,844,155 members
Home / Discussions / C#
   

C#

 
GeneralRe: pda automata Pin
Christian Graus1-Jun-09 13:59
protectorChristian Graus1-Jun-09 13:59 
GeneralRe: pda automata Pin
Pete O'Hanlon1-Jun-09 22:42
subeditorPete O'Hanlon1-Jun-09 22:42 
GeneralRe: pda automata Pin
Panorama1416-Jan-10 23:11
Panorama1416-Jan-10 23:11 
AnswerRe: pda automata Pin
Christian Graus1-Jun-09 13:23
protectorChristian Graus1-Jun-09 13:23 
QuestionCreating a Panel from with in a class Pin
Gary Strunk1-Jun-09 12:51
Gary Strunk1-Jun-09 12:51 
AnswerRe: Creating a Panel from with in a class Pin
Luc Pattyn1-Jun-09 13:19
sitebuilderLuc Pattyn1-Jun-09 13:19 
AnswerRe: Creating a Panel from with in a class Pin
Satish Pai1-Jun-09 19:19
Satish Pai1-Jun-09 19:19 
QuestionDrop Down List Issue Pin
sebogawa1-Jun-09 12:47
sebogawa1-Jun-09 12: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>
AnswerRe: Drop Down List Issue Pin
Christian Graus1-Jun-09 13:24
protectorChristian Graus1-Jun-09 13:24 
QuestionMessage Removed Pin
1-Jun-09 12:29
professionalN_tro_P1-Jun-09 12:29 
AnswerRe: Active Directory Issues Pin
Luc Pattyn1-Jun-09 12:34
sitebuilderLuc Pattyn1-Jun-09 12:34 
QuestionMessage Removed Pin
1-Jun-09 12:47
professionalN_tro_P1-Jun-09 12:47 
AnswerRe: Active Directory Issues Pin
Luc Pattyn1-Jun-09 12:56
sitebuilderLuc Pattyn1-Jun-09 12:56 
GeneralMessage Removed Pin
2-Jun-09 4:10
professionalN_tro_P2-Jun-09 4:10 
GeneralRe: Active Directory Issues Pin
Luc Pattyn2-Jun-09 4:49
sitebuilderLuc Pattyn2-Jun-09 4:49 
QuestionMessage Removed Pin
2-Jun-09 4:56
professionalN_tro_P2-Jun-09 4:56 
AnswerRe: Active Directory Issues Pin
Luc Pattyn2-Jun-09 5:01
sitebuilderLuc Pattyn2-Jun-09 5:01 
QuestionEnable Disable Hardware of the BIOS from c# Pin
droo991-Jun-09 11:36
droo991-Jun-09 11:36 
AnswerRe: Enable Disable Hardware of the BIOS from c# Pin
Henry Minute1-Jun-09 11:45
Henry Minute1-Jun-09 11:45 
GeneralRe: Enable Disable Hardware of the BIOS from c# Pin
droo991-Jun-09 11:50
droo991-Jun-09 11:50 
GeneralRe: Enable Disable Hardware of the BIOS from c# Pin
Henry Minute1-Jun-09 11:53
Henry Minute1-Jun-09 11:53 
AnswerRe: Enable Disable Hardware of the BIOS from c# Pin
Henry Minute1-Jun-09 12:36
Henry Minute1-Jun-09 12:36 
GeneralRe: Enable Disable Hardware of the BIOS from c# Pin
droo992-Jun-09 5:12
droo992-Jun-09 5:12 
QuestionCustom controls and Design Mode Pin
Dan Neely1-Jun-09 10:07
Dan Neely1-Jun-09 10:07 
AnswerRe: Custom controls and Design Mode Pin
Luc Pattyn1-Jun-09 10:21
sitebuilderLuc Pattyn1-Jun-09 10:21 

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.