Results 1 to 4 of 4

Thread: URLs in VB .frm

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Nov 1999
    Posts
    25

    Post

    Hey,

    I'm adding URLs to my program's about form.
    My question is this, I want to add a "mailto:" command (code finished) but I also want to fill in the subject line of the email message. Such as,

    to: Me@myaddress
    subject: Support!

    Can anyone help me? Is it even possible to do with VB?

  2. #2
    Frenzied Member Mark Sreeves's Avatar
    Join Date
    Nov 1999
    Location
    UK
    Posts
    1,845

    Post

    I think this question is asked every day!!

    Here's yesterday's...
    http://www.vb-world.net/ubb/Forum1/HTML/010942.html


    ------------------
    Mark Sreeves
    Analyst Programmer

    Mark.Sreeves@Softlab.co.uk
    A BMW Group Company


    [This message has been edited by Mark Sreeves (edited 11-25-1999).]

    [This message has been edited by Mark Sreeves (edited 11-25-1999).]

  3. #3
    Guest

    Post

    Module 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

    Button Code:

    Call ShellExecute(hwnd, "Open", "mailto:emailaddress?subject=emailtitle", "", App.Path, 1)

    ------------------
    [email=m.ralston@mediavault.co.uk]Matthew Ralston[/URL]
    The Blue Link
    My Home Page


  4. #4

    Thread Starter
    Junior Member
    Join Date
    Nov 1999
    Posts
    25

    Post

    Hey thanks,

    I already had all of the code to make the URL's work, that was in my program at the time that I posted the question. All I really needed was,

    "mailto:emailaddress?subject=emailtitle"

    Thanks again matthewralston.

    ------------------
    Thanks,
    MiDaWe

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