
open a web page from vb app
Hello,
If you want to open IE to open that page, you may use ShellExecute to do
so. If you want to embed a browser into your application, Microsoft
Internet controls are needed.
To call ShellExecute API,
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
Call ShellExecute(Form1.hwnd, "open", "http://www.microsoft.com",
vbNullString, vbNullString, &H0) ????
Hope this helps.
Regards,
Max
==========================
This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
|Newsgroups: microsoft.public.vb.controls.internet
|Subject: open a web page from vb app
|
|Hi,
|
|i have the following (i suppose simple) problem. I made a vb app that
|consists of a menu system. Now i want to have that when a menu item is
|selected, the browser is started (if it isn't already open) and it browses
|to a specific page on a website. Does anyone have a few lines of code that
|can do that?
|
|Thx in advance
|
|Regards,
|
|Thomas
|
|
|