+ Reply to Thread
Results 1 to 5 of 5

Thread: Visual Basic 6

  1. #1
    jaco_don's Avatar
    jaco_don is offline x10 Lieutenant jaco_don is an unknown quantity at this point
    Join Date
    Dec 2007
    Location
    Bombay,India
    Posts
    267

    Visual Basic 6

    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


  2. #2
    garrettroyce's Avatar
    garrettroyce is offline Generally Helpful Member garrettroyce is a glorious beacon of lightgarrettroyce is a glorious beacon of light
    Join Date
    Apr 2008
    Location
    IL, USA
    Posts
    3,746

    Re: Visual Basic 6

    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

  3. #3
    Hue Kares's Avatar
    Hue Kares is offline x10Hosting Member Hue Kares is an unknown quantity at this point
    Join Date
    Feb 2009
    Location
    UK
    Posts
    38

    Re: Visual Basic 6

    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

  4. #4
    Spasm is offline x10Hosting Member Spasm is an unknown quantity at this point
    Join Date
    Dec 2007
    Posts
    10

    Re: Visual Basic 6

    If you just want to open the page in the user's default web browser, read this: http://www.devx.com/vb2themax/Tip/18339

  5. #5
    jaco_don's Avatar
    jaco_don is offline x10 Lieutenant jaco_don is an unknown quantity at this point
    Join Date
    Dec 2007
    Location
    Bombay,India
    Posts
    267

    Re: Visual Basic 6

    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


+ Reply to Thread

Similar Threads

  1. Visual Basic... OOP!!
    By Zdroyd in forum Programming Help
    Replies: 4
    Last Post: 10-24-2008, 03:42 PM
  2. A simple Visual Basic Login Form
    By Zenax in forum Tutorials
    Replies: 0
    Last Post: 03-13-2007, 08:59 AM
  3. Visual Basic + Microsoft Access
    By Zenax in forum Off Topic
    Replies: 2
    Last Post: 03-01-2007, 03:12 AM
  4. Using Visual Basic 2005
    By TheJeffsta in forum Scripts & 3rd Party Apps
    Replies: 3
    Last Post: 08-05-2006, 02:18 PM
  5. Visual Basic for Free?
    By AsPeRiTy in forum Scripts & 3rd Party Apps
    Replies: 9
    Last Post: 08-15-2005, 08:24 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers