ABRIR SITE/EMAIL

USUARIO.EXCLUIDOS 07/03/2004 10:30:54
#14219
Em um cadastro geral, tenho um button que dá acesso ao site e email digitado ...

Como fazer isto ?
CAJU 07/03/2004 10:41:18
#14221
Resposta escolhida

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
Public Const conSwNormal = 1

cmd_click
if instr(txt.text, "@") 0 then
'email
ShellExecute hwnd, "open", "mailto:" & txt.txt, vbNullString, vbNullString, conSwNormal

else
ShellExecute hwnd, "open", txt.text, vbNullString, vbNullString, conSwNormal
end if

Tópico encerrado , respostas não são mais permitidas