Wrox Home  
Search P2P Archive for: Go

  Return to Index  

pro_vb thread: How do I Link Label to email client message box?


Message #1 by "Nigel Spicer" <spicerman@t...> on Fri, 19 Oct 2001 19:56:46
Sorry I left out the API declaration; put this code in the declarations 
section of your form:

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

Regards,
-Toby


>Subject: Re: How do I Link Label to email client message box?
>From: "Nigel Spicer" <spicerman@t...>
>Date: Sat, 20 Oct 2001 22:11:16
>X-Message-Number: 10
>
> > On the Label_Click event, do this:
> >
> > Call ShellExecute(Me.hwnd, _
> >                    vbNullString, _
> >                   "mailto:SomeEmailAddress@B...", _
> >                    vbNullString, _
> >                   "C:\", _
> >                    0)
> >
> > Regards,
> > -Toby
> >
> > sub or function not defined error on Call ShellExecute?
>
>How do I fix this?
>
>Nigel...
>


  Return to Index