Click here to Skip to main content
15,892,537 members
Please Sign up or sign in to vote.
2.00/5 (1 vote)
I have 2 forms. form1 and form2. form2 will be working as a wizard.the idea is to let the user select the file and let it get loaded on form1 which is the main.

form1 it is my main form(this form contains, textbox(for file path),datgridview and browse button which loads the file to the datgridview which works fine). now i created anotherform(form2) which will open and the user will broswe the file from it.the path will be displayed on the textbox. After the user clicked finish button. it must close form2 and open form1 with the file being loaded to form1.

How can i archive this ?
Posted
Updated 30-Mar-15 0:38am
v2
Comments
Sinisa Hajnal 30-Mar-15 6:39am    
Call form2.ShowDialog? Have property on form2 that you can check when it returns dialogResult.OK
deepankarbhatnagar 30-Mar-15 6:45am    
Please elaborate....

 
Share this answer
 
http://www.codeproject.com/Tips/548131/Transferring-information-between-two-forms-Part
 
Share this answer
 
v2

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