RSS RSS feed
November 20, 2009
Hot Topics:

Creating a Web Browser

  • November 19, 2002
  • By Karl Moore
  • Send Email »
  • More Articles »

If you fancy adding a Progress Bar to indicate how fast your Web page commands are moving along, you're in luck the WebBrowser control has an event designed specially for this purpose.

To use, you first need to add a Progress Bar to your application. This control ships with Visual Basic and can be added to your project by clicking 'Projects', 'Components' and selecting 'Microsoft Windows Common Controls 6.0'.

Here's a piece of sample code that uses the WebBrowser ProgressChange event to alter a simple Progress Bar:

Private Sub WebBrowser1_ProgressChange(ByVal _
Progress As Long, ByVal ProgressMax As Long)

On Error Resume Next
ProgressBar1.Max = ProgressMax
ProgressBar1.Value = Progress
ProgressBar1.Refresh

End Sub

After inserting this code, try visiting a Web site or clicking a link then monitor the progress visually.

1 2 3 4 5 6 7 8




Networking Solutions





Partners

  • Partner With Us














More for Developers

internet.commediabistro.comJusttechjobs.comGraphics.com

Search:

WebMediaBrands Corporate Info

Legal Notices, Licensing, Permissions, Privacy Policy.
Advertise | Newsletters | Shopping | E-mail Offers | Freelance Jobs