How To Load a web page in IE via VB 
Author Message
 How To Load a web page in IE via VB

How Do you Load a web page in IE via VB?


Wed, 03 Jan 2001 03:00:00 GMT  
 How To Load a web page in IE via VB


Quote:
> How Do you Load a web page in IE via VB?

Add this to your module:
Public 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 Sub OpenBrowser(hWnd as long,url as string)
'Make sure that you begin your url with http://

ShellExecute(hWnd, "open", url, ByVal 0, ByVal 0, ByVal 0)

End Sub

Use this call in your form:
OpenBrowser me.hWnd,"http://surf.to/VbArea"

Example taken form my site http://surf.to/Vbarea

Regards,
  Jonas



Thu, 04 Jan 2001 03:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. How to Load IE with a Web site address for VB

2. How to Load IE with a Web site address for VB

3. How to Load IE with a Web site address for VB

4. IE 4/5 and VB reading web pages?

5. Refresh Web Page via ActiveX (VB)

6. IE 6 hangs on page load

7. Getting loaded page of IE instance

8. Web pages in IE Cache folder?

9. Intercept web-pages before IE get's them

10. How to launch web page in small IE window

11. Further Question: Automating IE Login to Web Page with VBScript

12. Automating IE Login to Web Page with VBScript

 

 
Powered by phpBB® Forum Software