New to .Net and I'm not sure how to do this. I have a form1 with a combobox1 and a command button1.A user makes a selection in the combo then clicks button1 to open form2.
However, how would form2 get access to the value entered in combo1 of form1? I'm trying to use that value as a parameter to a stored procedure that is being used to fill controls on form2.
I tried to work this by creating a form1 object in the form2 class and then using this object to reference the DisplayMember property of combo1 which didn't work so I tried a couple of other properties to no avail. Both forms remain open at the same time.
Thanks in advance.
However, how would form2 get access to the value entered in combo1 of form1? I'm trying to use that value as a parameter to a stored procedure that is being used to fill controls on form2.
I tried to work this by creating a form1 object in the form2 class and then using this object to reference the DisplayMember property of combo1 which didn't work so I tried a couple of other properties to no avail. Both forms remain open at the same time.
Thanks in advance.