Results 1 to 4 of 4

Thread: Internet

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Mar 2000
    Posts
    84
    How do I make a link from my program that's been open in internet explorer ??

  2. #2
    Guest
    Try this. Make a Form with a CommandButton and put the following code into the Form.

    Code:
    Private 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
    
    Private Sub Command1_Click()
    
        'Open www.vb-world.net
        Retval = ShellExecute(0&, vbNullString, "www.vb-world.net", vbNullString, "C:\", 1)
    
    End Sub

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Mar 2000
    Posts
    84
    Thanks. I'll try it.

  4. #4
    Fanatic Member Dim's Avatar
    Join Date
    Jul 2000
    Posts
    620
    If you only are concerned with opening it in IE then this might work also:

    Code:
    'Place this under a command button
    Dim IE as String
    Set IE = CreateObject("internetexplorer.application")
    IE.Visible=True
    IE.Navigate(Text1.Text)
    This code will navigate the urls that you place in Text1.Text

    Hope that helped,
    D!m

    Ps. Maybe you better listen to Magatron, he knows better.
    Dim

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