Hi,
How do I declare modular level variables (or get 2 forms to talk to each other somehow!!)
I have declared Public variables in the Declarations section of Form1. When I added a 2nd form, Form2, code written in Form2 does not see the variables from Form1. (I added Form2 with the Add Form Dialog and it isn't a "child".)
I don't get it. All I am trying to do is add a large picture (image) of a jpeg photograph on Form2. Code in Form1 can't seem to direct activities on Form2 and Code on Form2 can't seem to use variables (even system variables like "Path"
from Form1.
I have looked for hours through 4 aftermarket books on VB6 and can't find the answer. I feel stupid asking such a simple question. Obviously, I don't try to make a living as a programmer!!
Thanks in advance!
daldous
How do I declare modular level variables (or get 2 forms to talk to each other somehow!!)
I have declared Public variables in the Declarations section of Form1. When I added a 2nd form, Form2, code written in Form2 does not see the variables from Form1. (I added Form2 with the Add Form Dialog and it isn't a "child".)
I don't get it. All I am trying to do is add a large picture (image) of a jpeg photograph on Form2. Code in Form1 can't seem to direct activities on Form2 and Code on Form2 can't seem to use variables (even system variables like "Path"
I have looked for hours through 4 aftermarket books on VB6 and can't find the answer. I feel stupid asking such a simple question. Obviously, I don't try to make a living as a programmer!!
Thanks in advance!
daldous