Results 1 to 5 of 5

Thread: Email Link ****Resolved****

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Aug 2002
    Posts
    83

    Email Link ****Resolved****

    Hi everbody,
    I am trying to make a program, and I want to make a button that allows them to email me. Is there any easy way to do this, and could I also have it so it automatically posts who your sending to. Like an html link?? Thanks!

    Ohhhh, by the way, I'm trying to make this percentage calculator, but people always write percentages weird, like they'll put .10, 10% or 10. Is there any way I could just make it say 10. Like, if they put 10% it makes it into 10, and if they put .10, it also converts into 10. Is this possible?? Thanks
    Last edited by poopyman67; Nov 27th, 2002 at 09:40 PM.

  2. #2
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333
    Is all you are trying to do is provide a link that, using the users default, installed, mail program, preaddress a message to you?

  3. #3
    Fanatic Member SeaHag's Avatar
    Join Date
    Jul 2001
    Location
    Lake Huron
    Posts
    901
    See if this works


    VB Code:
    1. Option Explicit
    2.  
    3. 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
    4. Private Const SW_SHOWNORMAL = 1
    5.  
    6.  
    7.  
    8.  
    9. Private Sub Command1_Click()
    10.  
    11. Dim Success As Long
    12.  
    13. Success = ShellExecute(0&, vbNullString, "mailto:" & "[email protected]", vbNullString, "C:\", SW_SHOWNORMAL)
    14.  
    15. End Sub


    Try that

    Seahag

  4. #4

    Thread Starter
    Lively Member
    Join Date
    Aug 2002
    Posts
    83
    SeaHag, where would I put that into the script, would I put it under the cmd button??? I tried that, but it didn't work. And, Hack, yeah, that what I want it to do, oonly, instead of a link, I would rather have it a button, but if thats impossible, a link will do just fine.

  5. #5
    Fanatic Member SeaHag's Avatar
    Join Date
    Jul 2001
    Location
    Lake Huron
    Posts
    901
    put the top half of that code at the top ..

    and yes put the rest under a command button..

    after that you can put it anywhere u want

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