Results 1 to 2 of 2

Thread: run something

  1. #1
    Guest
    here is the situation. text1 has a web address in it. i want command1 to go to that address when i click it. i know that if you go to start menu -> Run -> [web address here] it will go there. is there any way to do this

    -Steve

  2. #2
    Guest
    Code:
    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
    
    Public Const SW_SHOWNORMAL = 1
    
    Private Sub Command1_Click()
    ShellExecute Me.hwnd, vbNullString, Text1.text, vbNullString, "c:\", SW_SHOWNORMAL
    End Sub

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