PDA

View Full Version : get html file in Visual basic


indiman
05-25-2004, 02:18 PM
Hi
i have a button on a form that i need to open a html file on click

like
Private Sub Command1_Click()

code to open file (..\nm\circulars\circulars\icpkgs\apps\asp\MyHome.html)
______________________________

also i have another button which i need to open a url on click

Private Sub Command1_Click()

open url (www.mysite.com")
_______________________________

can any one help
im almost done with all other requirements..n times running short
THANKS

Antoniohawk
05-26-2004, 01:18 AM
Try the following to open a url in your default browser.

ShellExecute hWnd, "open", "C:\whatever\test.html", _
vbNullString, vbNullString, SW_SHOWNORMAL