PDA

View Full Version : fa partire una pagina html con visula basic?


texerasmo
10-06-2004, 14:48
Ho visto diverse applicazione che fanno partire una pagina html

in java lo so fare ma in visual basic no


Codice java

public class Go
{

public static void main(String args[])
{
Go go = new Go();
}

Go()
{
String s = "./webapps/GM/start.html";
try
{
Runtime.getRuntime().exec("rundll32 url.dll,FileProtocolHandler " + s);
}
catch(IOException ioexception) { }
}
}

Visul basic
...???
...???


potete aiutarmi?
tnks

texerasmo
10-06-2004, 14:55
trovato...
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 Sub BrowseTo(frm As Form, URL As String)

Call ShellExecute(frm.hwnd, vbNullString, URL, vbNullString, vbNullString, 1)

End Sub

Private Sub Form_Load()

BrowseTo Me, ("./webapps/GM/start.html")





End Sub

cionci
10-06-2004, 19:27
Scarica APIGuide da www.allapi.net ;)