Click here to Skip to main content
15,886,199 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
See more:
Hi Friends,
i have two form MainForm & SubForm... when i click mainform button click mainform textbox value send to sub form ..to chnge the value then closing event sub form value set to main form textbox ..

C#
mainfrom f=new mainform();
f.textbox.text="test1";

the value to assigned but not reset the value..
pls reply.


Thank's in advance.
Posted
Updated 8-May-13 2:14am
v2

No, it won't work with a new instance...
Have a look at this: Transferring information between two forms, Part 2: Child to Parent[^]
 
Share this answer
 
 
Share this answer
 
Comments
Johnny J. 8-May-13 8:30am    
Ungrateful b******! I take time to fink links to articles that will help the OP understand how to fix his problems, and as thanks I get a univote. :-P

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