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
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
Entire world is watching
http://www.aspfree.com/c/a/VB.NET/Di...-Visual-Basic/
I'm no VB expert, but I think using this tutorial and changing a few form properties, you should be able to accomplish your goal
gjr.gr - coming soon: secrets of OCD coding from a self taught tinkerer
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:
In VB6, the handler will look a little different.Code:Private Sub button1_click(sender as object, e as eventargs) Handles Button1.click webBrowser1.navigate("Your web page") End Sub
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
If you just want to open the page in the user's default web browser, read this: http://www.devx.com/vb2themax/Tip/18339
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
Entire world is watching