-
I have 1 text box and 1 command button
now how do I make it so that when someone clicks on the button, it verifiyes if the textbox says "Dimava", and if it does then I want it to goto http://members.aol.com/dimava/
how do I do that
incase you didn't understand what I mean, this is what the code would look like in regularr vb:
Code:
Private Sub Command1_click()
if text1.text = "Dimava" then
Navigate.to "http://members.aol.com/dimava/" 'not sure if this line will work
end if
End Sub
thanks in advance
BTW I opened VB 6 enterprise, then I picked DHTML project from the list
-
Add the following:
Code:
Sub NavigateURL(varURL as String)
Dim x As New InternetExplorer
x.Navigate2 (varURL)
End Sub
And you can use:
Code:
If Text1.Text = "Dimava, reasking already asked questions, and tried tricking himself into a guru." Then NavigateURL("http://www.aol.com/dimava/not/a/guru")
'Also, Dennis Wrenn is right.