Hi guys!
i'm using Visual Studio 2005 C#.
I like to ask this question about GUI.
How can i pass value from one form to another?
For example, the user have to key-in the amount of money he/she needs to borrow in form1.cs
Then on form2.cs, i need to get the value the user keyed-in in form1 and multiply by the interest rate and show the amount of interests he needs to pay on form2.cs
Did i confuse you guys?
Please help me! Tks for the help! =)
redprawn_89
0
Newbie Poster
Recommended Answers
Jump to PostHi,
Assume u get input in Form1.textBox1 and u display the amount of interest in Form2.textBox1.
I give simple example this will help u
> Create Two Forms namely Form1, Form2
> In form1 Draw one TextBox (textBox1), and Button (button1)
>In Form2 Draw one TextBox (textBox1)
>Change textBox1 Modifier …
Jump to Posthi,
you can use Session, withn the help of session you can pass your value to any page in your project. it work like this..
Session["value']=textbox1.text.tostring
now you can access these value to another page.
like
string a=Session["value"].
All 5 Replies
selvaganapathy
31
Posting Pro
redprawn_89
0
Newbie Poster
abhay_pundir
0
Newbie Poster
redprawn_89
0
Newbie Poster
Jx_Man
987
Nearly a Senior Poster
Featured Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.