By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,617 Members | 1,708 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,617 IT Pros & Developers. It's quick & easy.

MAPI vs. Outlook OCX Using VB 6.0

P: n/a
I know I can create a form using MAPISession and MAPIMessage objects and
have practically the same functionallity as Outlook Express. The question I
have is, is there a way to open up an Outlook Express "New Message" window
from within VB 6.0?
Jul 17 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
I used the following code:

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

Private Sub lbl_Email_Click()
Dim r As Long
r = ShellExecute(0, "open", "mailto:" & lbl_Email.Caption, 0, 0, 1)
End Sub
"Scott D. Barrish" <sb******@tampabay.rr.com> wrote in message
news:T6*******************@twister.tampabay.rr.com ...
I know I can create a form using MAPISession and MAPIMessage objects and
have practically the same functionallity as Outlook Express. The question I have is, is there a way to open up an Outlook Express "New Message" window
from within VB 6.0?

Jul 17 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.