[Visual Basic] Joining forms

Ogilvie, Ross A ogilvie.ross.a at edumail.vic.gov.au
Mon Feb 13 21:07:23 EST 2006


Switch between forms within a project. Plus I'm a bit of a newbie with VB.
 
Ta
 
Ross Ogilvie 
 
Head Of Geography
 
Sunbury College
 
30 Racecourse Rd.  Sunbury 3429
 
PH: 9744 1066

________________________________

From: vbasic-bounces at edulists.com.au on behalf of Bricks J. Winzer
Sent: Mon 2/13/2006 9:02 PM
To: Year 12 Visual Basic Programming Teachers' Mailing List
Cc: Visual Basic
Subject: Re: [Visual Basic] Joining forms



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

_______________________________________________
http://www.edulists.com.au - FAQ, resources, subscribe, unsubscribe
Vbasic Mailing List kindly supported by
http://www.vcaa.vic.edu.au - Victorian Curriculum and Assessment Authority and
http://www.vitta.org.au  - VITTA Victorian Information Technology Teachers Association Inc




Important - 
This email and any attachments may be confidential. If received in error, please contact us and delete all copies. Before opening or using attachments check them for viruses and defects. Regardless of any loss, damage or consequence, whether caused by the negligence of the sender or not, resulting directly or indirectly from the use of any attached files our liability is limited to resupplying any affected attachments. Any representations or opinions expressed are those of the individual sender, and not necessarily those of the Department of Education & Training.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/ms-tnef
Size: 5549 bytes
Desc: not available
Url : http://www.edulists.com.au/pipermail/vbasic/attachments/20060213/6aed40b4/attachment.bin


More information about the vbasic mailing list