|
-
Jan 28th, 2003, 07:48 PM
#1
Thread Starter
Hyperactive Member
E-mail Link
Sups,
In my program, the user can enter an e-mail address. What I want to do is to make the user to be able, after typing the e-mail, to click on the e-mail address and the default e-mail program will launch with the e-mail (Just like e-mail link in IE)
Also I want to do the same in site address, So when clickin the link, the default browser will open, surfing to that address.
tnx
-
Jan 28th, 2003, 08:09 PM
#2
Frenzied Member
use this:
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
for hyperlink:
ShellExecute Me.hWnd,"Open","http://www.cnn.com",0,0,3
for e-mail:
ShellExecute Me.hWnd,"Open","mailto:[email protected]",0,0,3
-
Mar 1st, 2003, 01:41 PM
#3
New Member
That worked great for me, but do you know if there is a parameter that you can send so that the browser (i'm opening a web site, not email) will open the link in a new window even if there are already open browser windows?
Thanks!
Jeff
-
Mar 1st, 2003, 02:25 PM
#4
-
Mar 1st, 2003, 04:28 PM
#5
Frenzied Member
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|