|
-
Mar 11th, 2004, 12:40 PM
#1
Thread Starter
Lively Member
changing the url
alright i have the code to open internet explorer im using the following
Code:
Call Shell("c:\program files\internet explorer\iexplore.exe " & Text2.Text, vbNormalFocus)
once explorer is open i need it so that when ever the user clicks enter again it will change the url to what text2 has changed to instead of opening a new window. i hope this makes sense. thanks
-
Mar 11th, 2004, 01:07 PM
#2
-
Mar 11th, 2004, 01:17 PM
#3
Thread Starter
Lively Member
i have tryed to use this code
Code:
ShellExecute "Http://www.google.com"
but im not to familiar with the ShellExecute. do i just slap the code above into my program or do i have to add some other things. thanks
-
Mar 11th, 2004, 01:28 PM
#4
Try this and see 
VB 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
Const SW_SHOWNORMAL = 1
Private Sub Form_Load()
ShellExecute Me.hwnd, "open", "www.vbforums.com", vbNullString, "C:\", SW_SHOWNORMAL
End Sub
Has someone helped you? Then you can Rate their helpful 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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|