Visual Basic 6

jaco_don

New Member
Messages
267
Reaction score
0
Points
0
Hi,

I wanted to add a Browser to a From in my project ..which will open a particular webpage. when i click a command button.

Any idea how to do that

Regards
Rohan
 

Hue Kares

New Member
Messages
38
Reaction score
6
Points
0
Hi Rohan

My experience with VB6 is limited, but, what you're asking for is very simple. Here's what you'd do in later versions.

* In your IDE, open the Toolbox
* Find the Webbrowser control and drag it on your Form. ( If you can't find the control, right-click on the toolbox and add it, as a new item.)
* Drag a button on the Form also.

Ensure the controls are named as webBrowser1 and Button1 (for this example to work).

In the click event for the button, you need to tell the browser where to go:

Code:
 Private Sub button1_click(sender as object, e as eventargs) Handles Button1.click

        webBrowser1.navigate("Your web page")

    End Sub

In VB6, the handler will look a little different.

Are you really using VB6? If so, why? It's quite an old language now...

May I suggest a trip to MSDN.

Hope this helps you.

Hue
 

jaco_don

New Member
Messages
267
Reaction score
0
Points
0
Well VB6 is part of our academic syllabus ..so we are suppose to build a project using VB6 as frontend and SQL or MSACCESS as backend

Thanks he help folks
 
Top