MAPI vs. Outlook OCX Using VB 6.0

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Scott D. Barrish

    MAPI vs. Outlook OCX Using VB 6.0

    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?


  • Scott D. Barrish

    #2
    Re: MAPI vs. Outlook OCX Using VB 6.0

    I used the following code:

    Private Declare Function ShellExecute _
    Lib "shell32.dl l" _
    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.Capti on, 0, 0, 1)
    End Sub


    "Scott D. Barrish" <sbarrish@tampa bay.rr.com> wrote in message
    news:T6ucb.9661 $Of2.466924@twi ster.tampabay.r r.com...[color=blue]
    > I know I can create a form using MAPISession and MAPIMessage objects and
    > have practically the same functionallity as Outlook Express. The question[/color]
    I[color=blue]
    > have is, is there a way to open up an Outlook Express "New Message" window
    > from within VB 6.0?
    >
    >
    >[/color]


    Comment

    Working...