This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2010-04-24 19:36:12

SeptimusHeap
Scratcher
Registered: 2010-02-01
Posts: 1000+

Visual Basic Question...

What is the event title for when a Web Browser page is loaded? I need it to work for any web browser object.


http://i46.tinypic.com/dw7zft.png

Offline

 

#2 2010-04-24 19:48:23

samurai768
Scratcher
Registered: 2009-07-21
Posts: 1000+

Re: Visual Basic Question...

???

What do you mean?

If you're talking about that label at the top of the window so I know that its scratch and not norton spyware, it's the title of the site, the title of the web page, and then the type of browser you're using.

Offline

 

#3 2010-04-24 20:08:24

fg123
Scratcher
Registered: 2008-11-13
Posts: 1000+

Re: Visual Basic Question...

Double click the webbrowser object. The default event is document_completed. That is it.

Code:

    Private Sub WebBrowser1_DocumentCompleted(ByVal sender As System.Object, ByVal e As System.Windows.Forms.WebBrowserDocumentCompletedEventArgs) Handles WebBrowser1.DocumentCompleted

    End Sub

You can also, in the code tab, click on the first box: http://img18.imageshack.us/img18/792/capturenm.png


select the webbrowser object, and in the box beside it, there are a lot of events titles for the webbrowser.

Last edited by fg123 (2010-04-24 20:10:48)


Hai.

Offline

 

#4 2010-04-24 20:14:13

SeptimusHeap
Scratcher
Registered: 2010-02-01
Posts: 1000+

Re: Visual Basic Question...

Never mind, I piggybacked it on another function...


http://i46.tinypic.com/dw7zft.png

Offline

 

Board footer