Joy Chak

Joy Chak

  • NA
  • 4
  • 0

calculations using control values from different windows forms

Apr 15 2006 12:52 PM

Hi,

I would like to know from an expert, how best I can do the following:

When I click a button1 in form1, the click event should read the value from txtBox1 of form1 and store it in a variable strParam1 (string or int type) and go to the child form form2. After I insert a value in textBox2 of form2 and click a button2 of form2 the click event of button2 should compare the value of txtBox2 of form2 with the value of txtBox1 of form1, that was stored in the variable strParam1read a value from form1. My point of asking is that I would not like to create a text box in form2 and transfer the value from txtBox1 of form1 to that text box and then compare.

I would like to keep form2 as simple as possible.   

Thanks

Joy


Answers (1)