Retroceder   Foros del Web > Temas generales de computación > Programación > Visual Basic

Respuesta
 
Herramientas Desplegado
Antiguo 17-ago-2005, 06:25   #1 (permalink)
aldo1982 ha deshabilitado el karma
 
Avatar de aldo1982
 
Fecha de Ingreso: noviembre-2004
Ubicación: santafe (argentina) COLON de STAFE
Mensajes: 1.090
Idea [aporte] Abrir Pagina Web Desde Vb

' Written exclusively for VB Center by Marco Cordero.

#If Win32 Then

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

#Else

Private Declare Function ShellExecute Lib _
"shell.dll" _
(ByVal hwnd As Integer, _
ByVal lpOperation As String, _
ByVal lpFile As String, _
ByVal lpParameters As String, _
ByVal lpDirectory As String, _
ByVal nShowCmd As Integer) As Integer

#End If

Private Const SW_SHOWNORMAL = 1
Private Sub Picture1_Click()

Dim iret As Long

' open URL into the default internet browser

iret = ShellExecute(Me.hwnd, _
vbNullString, _
"http://www.LA_PAGINA_KE_TENGAS_GANAS.com", _
vbNullString, _
"c:\", _
SW_SHOWNORMAL)

End Sub

Private Sub Form_Load()

End Sub

Private Sub URL_Click()

Dim iret As Long

' open URL into the default internet browser

iret = ShellExecute(Me.hwnd, _
vbNullString, _
"http://www.LA_PAGINA_KE_TENGAS_GANAS.com", _
vbNullString, _
"c:\", _
SW_SHOWNORMAL)

End Sub
__________________
LA MUERTE ESTÁ TAN SEGURA DE VENCER QUE NOS DA TODA UNA VIDA DE VENTAJA
aldo1982 está desconectado   Responder Citando
Antiguo 17-ago-2005, 07:25   #2 (permalink)
SKL® ha deshabilitado el karma
 
Avatar de SKL®
 
Fecha de Ingreso: agosto-2005
Ubicación: San PEdro Buenos Aires (Argentina)
Mensajes: 33
woooooow se ve que la complicaste 1 poquito... :S

yo solo uso este codigo


shell "explorer.exe" & " www.google.com.ar",vbnormalfocus

y listo :D jejej todos contentos
SKL® está desconectado   Responder Citando
Antiguo 17-ago-2005, 08:21   #3 (permalink)
aldo1982 ha deshabilitado el karma
 
Avatar de aldo1982
 
Fecha de Ingreso: noviembre-2004
Ubicación: santafe (argentina) COLON de STAFE
Mensajes: 1.090
FUERA DE JODA KE LE METI CODIGO PARA HACERSOPA AJAJAJAJ , LAVERDAD KE VOY A USAR EL TUYO :p GRACIAS
__________________
LA MUERTE ESTÁ TAN SEGURA DE VENCER QUE NOS DA TODA UNA VIDA DE VENTAJA
aldo1982 está desconectado   Responder Citando
Antiguo 17-ago-2005, 08:28   #4 (permalink)
aldo1982 ha deshabilitado el karma
 
Avatar de aldo1982
 
Fecha de Ingreso: noviembre-2004
Ubicación: santafe (argentina) COLON de STAFE
Mensajes: 1.090
Cita:
Iniciado por SKL®
woooooow se ve que la complicaste 1 poquito... :S
shell "explorer.exe" & " www.google.com.ar",vbnormalfocus
lo prove y no me anda, me dice "archivo o nombre incorrecto" aca te dejo micodigo
1er pruba
Shell "C:\Archivos de programa\Internet Explorer\iexplore.exe" & "WWW.GOOGLE.COM", vbNormalFocus

2da pruba:
shell "explorer.exe" & " www.google.com.ar",vbnormalfocus
3er prueba (es la ke me sirve para la ayuda delsistema) ayudame en esta plss
shell "explorer.exe" & " c:\ayuda.html",vbnormalfocus
__________________
LA MUERTE ESTÁ TAN SEGURA DE VENCER QUE NOS DA TODA UNA VIDA DE VENTAJA
aldo1982 está desconectado   Responder Citando
Respuesta

No hay votos aún.


Herramientas
Desplegado

Normas de Publicación
No puedes crear nuevos temas
No puedes responder temas
No puedes subir archivos adjuntos
No puedes editar tus mensajes

BB code is Activado
Caritas están Activado
[IMG] está Activado
Código HTML está Desactivado


La Zona horaria es GMT -6. Ahora son las 23:26.


Message Board Statistics

LinkBacks Enabled by vBSEO 3.1.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93