[Visual Basic] Joining forms

Bricks J. Winzer sarcophagus13 at iprimus.com.au
Mon Feb 13 21:02:01 EST 2006


Hi Ross

> Sorry to trouble you all,
>  
> But if anyone knows how to link forms within a file using VB it would be 
> grreatly appreciated.

I'm not sure what you mean - do you want to be able to switch between forms 
within a project?  Or do you want to exchange data between forms?

If it's the former (no pun intended), then you can use something like
Form1.SetFocus to go to Form1.

If you want to exchange data, there are two ways:
1. Use Global (or Public) variables to store data from controls.
2. Just refer to controls by their form.  I haven't had much luck getting 
this to work (but I haven't tried it that much), but try referring to, say, 
Form1.Text1.Text and see how you go

Cheers

B.J. Winzer
Hawthorn SC



More information about the vbasic mailing list