Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Calling an HTML file
Message
Information générale
Forum:
Visual Basic
Catégorie:
Autre
Divers
Thread ID:
00512911
Message ID:
00513107
Vues:
19
>How can I run a web page from my VB app? Can I just Shell("Shellex.exe \html\index.htm", 1)?

This will open a given web page in the registered browser. I added line continuations to the declaration for UT readability. In my code the declare is one line. Hope this helps, I will most likely be off line for the rest of the day. Taa Taa For now.
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

startdoc = ShellExecute(Scr_hDC, "Open", "C:\temp\my.html", "", "C:\", 1)    'SW_SHOWNORMAL)
~Joe Johnston USA

"If ye love wealth better than liberty, the tranquility of servitude better than the animated contest of freedom, go home from us in peace. We ask not your counsel or arms. Crouch down and lick the hands which feed you. May your chains set lightly upon you, and may posterity forget that ye were our countrymen."
~Samuel Adams

Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform