Transfering Data between forms

mysticalsun2000

New member
Joined
Sep 5, 2006
Messages
2
Programming Experience
Beginner
Hi there,I am new to dotnet and working on a project. I am facing a small problem. I have a Main form, on this form i have two button and two text boxes. When I write a station name like lets say "AMERICA",click on "Get Station Code" button a small form is displayed on which it will display a three letter station code(AMR)(in a list box), when i click on any station code and click on go button of form2 the station code should come to the text box1 of the Main Form. Then I click on second button the same thing happens. this time the station code comes in second text box.The problem is that when second form is displayed the data from text box of main form is erased even if in case it is not closed & everytime the code comes in first text box only. Please Help.Thanking you and waiting for some kind reply.Amit
 
Back
Top