Results 1 to 3 of 3

Thread: Please Read

  1. #1

    Thread Starter
    Member
    Join Date
    Jun 2000
    Location
    Dallas, Texas
    Posts
    52
    Need a simple command. [earlier post requesting help]

    I am in desparate need of help for a few commands to complete this project, and being a newbie at VB, this is quite a challenge.

    Jim

  2. #2
    _______ HeSaidJoe's Avatar
    Join Date
    Jun 1999
    Location
    Canada
    Posts
    3,946

    Cool email


    'launch default email program and send mail

    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 Const SW_SHOW = 5

    'form code (command button)
    ShellExecute hwnd, "open", "mailto:[email protected]", vbNullString, vbNullString, SW_SHOW
    "A myth is not the succession of individual images,
    but an integerated meaningful entity,
    reflecting a distinct aspect of the real world."

    ___ Adolf Jensen

  3. #3

    Thread Starter
    Member
    Join Date
    Jun 2000
    Location
    Dallas, Texas
    Posts
    52

    thanks for responding

    Hey "HeSaidJoe"

    I tried to copy what you posted then paste it into my program, but being a newbie, maybe I assumed wrong. Should I have only used part of what you typed? I got compile errors that said something like "Only comments can be something after end sub" Not sure what that mean't cause it wasn't after end sub. Oh yeah, I did change the e-mail address part to mine [email protected] but it still gave the same message.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width