private void Form1_Load(object sender, EventArgs e) { //get device list
DsDevice device = null;
dropDown = new ToolStripDropDown();
// Set the drop-down on the ToolStripDropDownButton. DeviceList.DropDown = dropDown;
// Set the drop-down direction. DeviceList.DropDownDirection = ToolStripDropDownDirection.Left;
// Do not show a drop-down arrow. DeviceList.ShowDropDownArrow = false;
// Declare three buttons, set their foreground color and text, // and add the buttons to the drop-down. if (!DsDev.GetDevicesOfCat(FilterCategory.VideoInputDevice, out captureDevices))