How to pass data from one windows form to another

Posted by balajirnaukri-12656 under C# on 5/18/2012 | Points: 10 | Views : 14488 | Status : [Member] | Replies : 4
How to pass the data from one windows form to another as we do in the webpage with the help of session?????

Thanks and Regards
Balaji.R
ASP.NET Devloper
Solve-IT corp



Responses

Posted by: Akiii on: 5/18/2012 [Member] Bronze | Points: 25

Up
0
Down
Found two good articles with respect to your requirement. check it out :-

http://www.codeproject.com/Articles/14122/Passing-Data-Between-Forms

http://www.c-sharpcorner.com/UploadFile/alindag/HowToPassValuesBetweenWindowsForms.htm02242006061520AM/HowToPassValuesBetweenWindowsForms.htm.aspx


I hope this helps..

Thanks and Regards
Akiii

balajirnaukri-12656, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Anbuselvanit on: 5/18/2012 [Member] Starter | Points: 25

Up
0
Down
Hi Balaji !
Here By I had attached a document to u with this post that will give u the way to pass values from one form to another just follow the steps and u will get clear ideas..
 Download source file

ANBUSELVAN A C

balajirnaukri-12656, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Ajay.Kalol on: 5/21/2012 [Member] Starter | Points: 25

Up
0
Down
Use public Variable to store value in any class file.

because in window application public variable of class file scope is application level and lifetime upto end of application.

so it is used for state management in winform application



Enjoy.....

Ajay
ajaypatelfromsanthal.blogspot.in

balajirnaukri-12656, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Vinay13mar on: 10/20/2012 [Member] Starter | Points: 25

Login to post response