Results 1 to 2 of 2

Thread: html page from a button click

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Aug 2001
    Posts
    31

    html page from a button click

    Hai friends,
    I am having a command button in a form.
    In the click event of that command button, I want to take the user to a Html page.
    Will anybody help me in this coding.
    Thanx in advance.

  2. #2
    -= B u g S l a y e r =- peet's Avatar
    Join Date
    Aug 2000
    Posts
    9,629
    VB Code:
    1. Option Explicit
    2.  
    3.  
    4. Private Declare Function ShellExecute Lib "shell32.dll" Alias "ShellExecuteA" _
    5.                 (ByVal hwnd As Long, ByVal lpszOp As String, _
    6.                  ByVal lpszFile As String, ByVal lpszParams As String, _
    7.                  ByVal LpszDir As String, ByVal FsShowCmd As Long) _
    8.                  As Long
    9. Private Const SW_SHOWNORMAL = 1
    10.  
    11. Private Sub Command1_Click()
    12.     'Open a web page
    13.     Dim l As Long
    14.     l = ShellExecute(Me.hwnd, "Open", "http://www.vbworld.com", "", "C:\", SW_SHOWNORMAL)
    15. End Sub
    -= a peet post =-

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