Results 1 to 3 of 3

Thread: [RESOLVED] In Need Of Help.

  1. #1

    Thread Starter
    New Member
    Join Date
    May 2007
    Posts
    8

    Resolved [RESOLVED] In Need Of Help.

    Hello,
    May you please give me help on how to (on visual basic) click on a button that will link you to a website? Is it possible......i have been looking for a solution but haven't been able to find one,
    Thank you.
    Last edited by Hack; May 24th, 2007 at 01:42 PM. Reason: Added RESOLVED to thread title and green resolved checkmark

  2. #2
    Lively Member ixtrip's Avatar
    Join Date
    Aug 2005
    Posts
    64

    Re: In Need Of Help.

    You need to put the first code block at the very top and put the bottom one under the Private Sub Button1_Click

    vb Code:
    1. Private Declare Function ShellExecute Lib "shell32.dll" Alias "ShellExecuteA" _
    2.     (ByVal hwnd As Long, ByVal lpOperation As String, _
    3.     ByVal lpFile As String, ByVal lpParameters As String, _
    4.     ByVal lpDirectory As String, ByVal nShowCmd As Long) As Long
    5.  
    6. Private Sub Command2_Click()
    7. ShellExecute Me.hwnd, "Open", "http://www.vbforums.com", "", "", Normal
    8. End Sub

  3. #3

    Thread Starter
    New Member
    Join Date
    May 2007
    Posts
    8

    Thumbs up Re: In Need Of Help.

    Thank you very much..........i tried it today and it worked.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width