[VB6] Opening Menu Into Open Form

Junior Spellweaver
Joined
Oct 26, 2007
Messages
108
Reaction score
0
Ok This Is Confusing for me.. im new to VB and its my first project attempt.. anyhow!
Ill Upload images for ya :P
Ok First:
What Is The Command so When I click A Menu Option, It dosent open into a new form window.. it just stays in the same..

Pictures:
TheFear - [VB6] Opening Menu Into Open Form - RaGEZONE Forums

So When I Click on Main it opens a new form >
TheFear - [VB6] Opening Menu Into Open Form - RaGEZONE Forums

how do i stop that from happening?
 
Your copy of VB is glitchy?

Or if you want Form1 to link to Form2, add a command button and type:
Private Sub Command1_Click()
Form1.Hide
Form2.Show
End
 
to put html on your form do this:

1. find the toolbox on the left side with all of the controls on it and right click it.
2. click components
3. scroll down and find 'microsoft internet control"
4. drag it on your form
5. somewhere in your code (such as form_load) type:
webbrowser1.navigate "http://your-url.com"

good luck
 
The problem may be two things I can think of right now (I have almost never used VB, so sorry if this is completely wrong)

1. It may be that you need brackets WebBrowser1.Navigate("uri")
2. It may be that you have the wrong name and you are forgetting the capitals if you are just copying and pasting without typing it in, VB may not change it to uppercase I don't know, i.e. WebBrowser instead of webbrowser
 
There would have to be some sort of code in it to make the form2 show either make sure it's like
Code:
Private Sub main_Click()

End Sub
or you have a **** version of VB :P
 
Back