I have a form with a combobox, i have added 3 items in which is the code below:
public Inventory()
{
InitializeComponent();
lstMain.GridLines = Enabled;
cmbchoose.Items.Add("Add New Item");
cmbchoose.Items.Add("Delete an Item");
cmbchoose.Items.Add("Edit Item");
}
and i am wondering, how do i make it to where if the user selects from the combobox and chooses --> Add new item, if choose combobox add new item, then open up form, if choose delete an item, then open up this form, do I get it to do that?hopefully it is simple, thanks in advance.


Sign In
Create Account


Back to top









