Click here to Skip to main content
15,891,789 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have a MainForm and to other child forms.
In child form-1 i select a value in ComboBox.
Now to close the form-1 and logout of main form.
Again i login and enter the child form-2 ,
How to get value of selected ComboBox value from 1st(form-1) to 2nd(form-2)
Posted
Comments
bhagirathimfs 16-May-12 3:01am    
Form2 is child of Form1 ????

1 solution

If the Form2 is the child of Form1 than no need to logout and re login to the application just pass the ComboBox value form one Form1 to Form2 and hind the Form1.

These link help you do pass value from one form to another.
send-values-from-one-form-to-another-form-in-c-sharp-winforms[^]
Using a delegate to pass data between two forms[^]
Passing Data Between Forms[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900