I currently have a dropdown box called, "dropdownDeviceSelector" with the current fields in the Main.Designer.cs class:
this.dropdownDeviceSelector.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)| System.Windows.Forms.AnchorStyles.Right)));
this.dropdownDeviceSelector.FormattingEnabled = true;
this.dropdownDeviceSelector.Location = new System.Drawing.Point(407, 100);
this.dropdownDeviceSelector.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
this.dropdownDeviceSelector.Name = "dropdownDeviceSelector";
this.dropdownDeviceSelector.Size = new System.Drawing.Size(100, 28);
this.dropdownDeviceSelector.TabIndex = 4;
And then, I have a function in my Main.cs file called, "chooseDevice":
private void chooseDevice(object sender, EventArgs e)
{
}
However, I only want the dropdownDeviceSelector to appear when the function chooseDevice is called. I'm very new to winforms so I don't really know how to implement this.
What I have tried:
I have tried calling the dropdown box in the function to no avail. I'm very new to winforms so I'm not really sure how this is done.