Ver Mensaje Individual
  #16 (permalink)  
Antiguo 09/07/2007, 07:38
MiKe27
 
Fecha de Ingreso: abril-2007
Mensajes: 46
Antigüedad: 18 años
Puntos: 0
Re: Preguntas sencillas

para abrir una pagina web desde boton:

copia esto en un modulo nuevo:
Código:
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
Const SW_NORMAL = 1

y esto en un boton:

Código:
Dim X
X = ShellExecute(Me.hwnd, "Open", "http://www.google.tk", &O0, &O0, SW_NORMAL)
con eso se te abrira la pagina de google, si kieres abrir otra pagina lo cambias desde el codigo