Passing values between forms

Simon

Active member
Joined
Mar 3, 2003
Messages
25
Location
V
Hi,

How do you do when youre passing a variable value between forms? Do you use a shared variable or is there another way?

Lik sedning an argument in the Show() method, that would be great.

Regards,
SiMoN.
 
The easiest way is to alter the constructor of one form so it accepts an instance of the other form. That way it has a handle around in memory that it can always refer to, if it needs to access any members on the first.
 
Back
Top