Hi,
Is it possible to open Internet Explorer and automaticly surf to a website?
Printable View
Hi,
Is it possible to open Internet Explorer and automaticly surf to a website?
try the api shellexecute. perfect for what you want.
casey.
The what?
I'm sorry, I'm pretty new with this stuff.
Can you give me a little example code?? :bigyello:
Thank you!
VB Code:
Option Explicit 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 Const SW_NORMAL = 1 Private Sub Command1_Click() ShellExecute 0, "Open", "http://www.google.com", 0&, App.Path, SW_NORMAL End Sub
isnt it sw_shownormal?
Quote:
Originally Posted by |2eM!x
VB Code:
Private Const SW_SHOWNORMAL = 1 Private Const SW_NORMAL = 1
Yes, you may be right. But both constants have the same value, so it doesn't really matter.