It appears you have not yet registered with DEVPPL. To register please click here... (it's fast, easy and free!)

Forum

Log In Sponsors
Board index Programming Visual Basic Forum

please help me for driving web browser in vb6.0

Moderator: dafunkymunky

please help me for driving web browser in vb6.0

Postby tumee on Sat Feb 21, 2009 7:15 am

hello i'm writing lessons program. But it can't work. If known any one please help me.

Private Sub Form1_load()
WebBrowser1.Navigate ("C:\Data\000.html")
End Sub

Private Sub WebBrowser1_StatusTextChanges(ByVal Text As String)
Dim HtmlUrl as String
HtmlUrl = WebBrowser1.LocationUrl
If HtmlUrl = "command:goto:001" Then
WebBrowser1.Navigate ("C:\Data\001.html")
If HtmlUrl = "command:goto:002" Then
WebBrowser1.Navigate ("C:\Data\002.html")
.
.
End Sub

C:\Data\000.html inner code example.
<a href = "command:goto:001">Lesson 1</a><br>
<a href = "command:goto:002">Lesson 2</a><br>

If "Lesson 1" clicked the page need to change by c:\Data\001.html
But it doesn't work. The WebBrowser1 always running.
Please help me for those problem
tumee
 
Posts: 2
Joined: Sat Feb 21, 2009 7:01 am

Re: please help me for driving web browser in vb6.0

Postby flabbyrabbit on Sat Feb 21, 2009 11:18 am

Why not just have:
Code: Select all
<a href = "C:\Data\001.html">Lesson 1</a><br>
<a href = "C:\Data\002.html">Lesson 2</a><br>
In the HTML

Flabby Rabbit
Image
User avatar
flabbyrabbit
500+ Club
 
Posts: 706
Joined: Thu Jan 25, 2007 1:10 pm
Location: Midlands, England

Re: please help me for driving web browser in vb6.0

Postby tumee on Mon Mar 02, 2009 3:59 am

thnk's for replay.
I want to do <a href = "command:goto:001">Lesson 1</a><br> this way. But i don't know how do it?
If known any one please help me.
tumee
 
Posts: 2
Joined: Sat Feb 21, 2009 7:01 am


Who is online

Users browsing this forum: No registered users and 4 guests