Guidelor
Messages postés236Date d'inscriptionjeudi 31 octobre 2002StatutMembreDernière intervention18 août 2006
-
2 avril 2003 à 21:05
Guidelor
Messages postés236Date d'inscriptionjeudi 31 octobre 2002StatutMembreDernière intervention18 août 2006
-
3 avril 2003 à 18:06
Bonjour
J'aimerais savoir s'il existe un moyen d'acceder à une page web précise en cliquant sur un bouton de
mon prog
Tout simplement
D'avance merci
fredlynx
Messages postés662Date d'inscriptionmercredi 16 janvier 2002StatutModérateurDernière intervention16 octobre 20103 3 avril 2003 à 00:56
ça par exemple...
Private Declare Function GetDesktopWindow Lib "user32" () As Long
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 Const SW_SHOWNORMAL As Long = 1
Private Const SW_SHOWMAXIMIZED As Long = 3
Private Const SW_SHOWDEFAULT As Long = 10
Private Const SPI_GETWORKAREA = 48
Private Sub command1_Click()
Dim sURL As String
sURL = "www.vbfrance.com"
Call ShellExecute(GetDesktopWindow(), "open", sURL, 0&, 0&, SW_SHOWNORMAL)
End Sub