Click here to Skip to main content
15,880,796 members
Home / Discussions / C#
   

C#

 
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>
AnswerRe: Drop Down List Issue Pin
Christian Graus1-Jun-09 12:24
protectorChristian Graus1-Jun-09 12:24 
QuestionMessage Removed Pin
1-Jun-09 11:29
professionalN_tro_P1-Jun-09 11:29 
AnswerRe: Active Directory Issues Pin
Luc Pattyn1-Jun-09 11:34
sitebuilderLuc Pattyn1-Jun-09 11:34 
QuestionMessage Removed Pin
1-Jun-09 11:47
professionalN_tro_P1-Jun-09 11:47 
AnswerRe: Active Directory Issues Pin
Luc Pattyn1-Jun-09 11:56
sitebuilderLuc Pattyn1-Jun-09 11:56 
GeneralMessage Removed Pin
2-Jun-09 3:10
professionalN_tro_P2-Jun-09 3:10 
GeneralRe: Active Directory Issues Pin
Luc Pattyn2-Jun-09 3:49
sitebuilderLuc Pattyn2-Jun-09 3:49 
QuestionMessage Removed Pin
2-Jun-09 3:56
professionalN_tro_P2-Jun-09 3:56 
AnswerRe: Active Directory Issues Pin
Luc Pattyn2-Jun-09 4:01
sitebuilderLuc Pattyn2-Jun-09 4:01 
QuestionEnable Disable Hardware of the BIOS from c# Pin
droo991-Jun-09 10:36
droo991-Jun-09 10:36 
AnswerRe: Enable Disable Hardware of the BIOS from c# Pin
Henry Minute1-Jun-09 10:45
Henry Minute1-Jun-09 10:45 
GeneralRe: Enable Disable Hardware of the BIOS from c# Pin
droo991-Jun-09 10:50
droo991-Jun-09 10:50 
GeneralRe: Enable Disable Hardware of the BIOS from c# Pin
Henry Minute1-Jun-09 10:53
Henry Minute1-Jun-09 10:53 
AnswerRe: Enable Disable Hardware of the BIOS from c# Pin
Henry Minute1-Jun-09 11:36
Henry Minute1-Jun-09 11:36 
GeneralRe: Enable Disable Hardware of the BIOS from c# Pin
droo992-Jun-09 4:12
droo992-Jun-09 4:12 
QuestionCustom controls and Design Mode Pin
Dan Neely1-Jun-09 9:07
Dan Neely1-Jun-09 9:07 
AnswerRe: Custom controls and Design Mode Pin
Luc Pattyn1-Jun-09 9:21
sitebuilderLuc Pattyn1-Jun-09 9: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.