Computing.Net > Forums > Programming > making a link with 2 forms in vb

making a link with 2 forms in vb

Reply to Message Icon

Original Message
Name: ravib
Date: September 15, 2003 at 15:07:40 Pacific
Subject: making a link with 2 forms in vb
OS: win 98
CPU/Ram: 120
Comment:

hi!!!

i'm doing a project useing visual basic 6 and i want to know how to make a link between 2 forms just like a hyperlink on a website and stuff. i want to make somthing similar like that but using the commandbutton and putting in the code so i can create a link between the two forms. and please can u give me the code too?
thanks

appreciate your help

ravib


Report Offensive Message For Removal


Response Number 1
Name: Chi Happens
Date: September 15, 2003 at 15:21:35 Pacific
Reply: (edit)

What is it you are trying to do? You want a button on form 1 to show form 2? That is easy, since the form objects are global in vb.

ON FORM1:
Sub Command1_Click()
    Form2.Show vbModal ' You don't need vbModal if you don't want the form to be modal
End Sub

Hope this is what you are trying to do. Also, realize that a windows application is NOTHING like an html page, nor a hyperlink on a page.

Chi Happens


Report Offensive Follow Up For Removal







Use following form to reply to current message:

   Name: From My Computing.Net Settings
 E-Mail: From My Computing.Net Settings

Subject: making a link with 2 forms in vb

Comments:

 


  Homepage URL (*): 
Homepage Title (*): 
         Image URL: 
 
Data Recovery Software




Have you ever used OpenOffice?

Yes, as my main suite.
Yes, occationally.
Yes, but only once.
No, never.


View Results

Poll Finishes In 5 Days.
Discuss in The Lounge