Wanted: Code to click a label and pop up user default e-mail program 
Author Message
 Wanted: Code to click a label and pop up user default e-mail program
Does anyone have some code to put in the click event of a lable that will
pop up the user's default e-mail program with the correct address in the
"To" field ? Easy to do in HTML (mailto:) but how is it done in VB?

Thanks,

Al Canton




Thu, 25 Jul 2002 03:00:00 GMT  
 Wanted: Code to click a label and pop up user default e-mail program
Play around with this code. I don't have the code handy so this is from
memory.

Mark

(In a BAS module:)

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

(In the click event of the lable:)


0&, 0&, 0&)



Quote:
> Does anyone have some code to put in the click event of a lable that
will
> pop up the user's default e-mail program with the correct address in
the
> "To" field ? Easy to do in HTML (mailto:) but how is it done in VB?

> Thanks,

> Al Canton


Sent via Deja.com http://www.deja.com/
Before you buy.


Thu, 25 Jul 2002 03:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Wanted: Code to pop up e-mail program

2. How to Open Users Default Email Program

3. attach file from my prog to user's default mail program

4. Pop-ups in MS Office

5. Mail Message pop up to alert user

6. pop-ups

7. Pop-ups in TreeView

8. downloading file without pop-ups

9. Pop-ups

10. Pop ups

11. control enumeration pop-ups at design time

12. Pop Ups

 

 
Powered by phpBB® Forum Software