|
-
May 29th, 2001, 04:08 AM
#4
Re: Opening forms with parameters
In Visual basic you do not need to close one form when another opens. Moreover every loaded form is effectively a global class which can be accessed by other parts of the program.
For example:
'in frmMain
private Sub CommandChild_Click()
frmChild.Show vbModal
End Sub
'in frmChild
private Sub Form_Load()
If frmMain.lstValues.Text = "Customer" then
'\\ customer was selected from listbox
else
'\\ something other than customer was selected
End If
End Sub
hth,
D.
-------------------------------------------------
Ex. Datis: Duncan Jones
Merrion Computing Ltd
http://www.merrioncomputing.com
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|