|
-
Jul 14th, 2000, 12:48 PM
#1
Thread Starter
Lively Member
How do I make a link from my program that's been open in internet explorer ??
-
Jul 14th, 2000, 01:13 PM
#2
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
-
Jul 14th, 2000, 06:14 PM
#3
Thread Starter
Lively Member
-
Jul 15th, 2000, 01:10 AM
#4
Fanatic Member
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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|