Thread: Visual Basic

  1. #1
    Registered User The15th's Avatar
    Join Date
    Aug 2001
    Posts
    125

    Visual Basic

    Hi.

    I have a stupid School project to do and i have finished it except i need a button that will load up my web site... I cant seem to find something simillar to ShellExecute to use with Visual Basic. So does anyone here know how to link to a web site using Visual Basic.

    Thanks Heaps.
    arrh, i got nothing good to say.
    http://www.praxis1.vic.edu.au/home/dcola/

  2. #2
    Registered User mfc2themax's Avatar
    Join Date
    Aug 2001
    Posts
    347
    Public Declare Function ShellExecute Lib "shell32.dll" Alias "ShellExecuteA" _
    (ByVal hwnd As Long, ByVal lpOperation As String, _
    ByVal lpFile As String, ByVal lpParameters As String, _
    ByVal lpDirectory As String, ByVal nShowCmd As Long) As Long

    Call ShellExecute(Me.Hwnd, "Open", "http://yourwebsitehere.com", "", "", 1)
    mfc2themax-Creator of all that is.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 10
    Last Post: 11-23-2007, 12:13 AM
  2. Run Visual Basic code inside C++?
    By torbjoen in forum Windows Programming
    Replies: 8
    Last Post: 07-31-2002, 11:41 PM
  3. <list>
    By Unregistered in forum C++ Programming
    Replies: 9
    Last Post: 02-24-2002, 04:07 PM
  4. Visual Basic C++
    By gussguss in forum C++ Programming
    Replies: 8
    Last Post: 11-20-2001, 10:58 AM