how to send value from 1 page to another in windws application

Posted by Shanky11 under C# on 2/7/2013 | Points: 10 | Views : 1052 | Status : [Member] | Replies : 4
i have two forms
i have three text box on ist page i put some values in three boxes now i want that these values goes to another form label on buttn click of first form




Responses

Posted by: Satyapriyanayak on: 2/7/2013 [Member] [MVP] Silver | Points: 25

Up
0
Down
http://www.codeproject.com/Articles/14122/Passing-Data-Between-Forms
http://www.c-sharpcorner.com/UploadFile/alindag/HowToPassValuesBetweenWindowsForms.htm02242006061520AM/HowToPassValuesBetweenWindowsForms.htm.aspx

If this post helps you mark it as answer
Thanks

Shanky11, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Pavanandey on: 2/7/2013 [Member] Bronze | Points: 25

Up
0
Down
you can save them in public variable and access them

Thanks
Pavan Kumar
Mark Answer if this fits the need

Shanky11, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Sakthi.Singaravel on: 2/7/2013 [Member] Silver | Points: 25

Up
0
Down
Add one module (Project-> Add module) and declare one friend variable...

Friend passVar As String=""


First form:
add below code to click event...

passVar =TextBox1 .text


write below code as Second form_Load() event..

Label1.Text=passVar 


Regards,
Singaravel M

Shanky11, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Kundnani.Rt on: 2/12/2013 [Member] Starter | Points: 25

Login to post response