|
-
Nov 27th, 2002, 12:48 PM
#1
Thread Starter
Lively Member
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.
-
Nov 27th, 2002, 01:28 PM
#2
Is all you are trying to do is provide a link that, using the users default, installed, mail program, preaddress a message to you?
-
Nov 27th, 2002, 01:29 PM
#3
Fanatic Member
See if this works
VB Code:
Option Explicit
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_SHOWNORMAL = 1
Private Sub Command1_Click()
Dim Success As Long
Success = ShellExecute(0&, vbNullString, "mailto:" & " [email protected]", vbNullString, "C:\", SW_SHOWNORMAL)
End Sub
Try that
Seahag
-
Nov 27th, 2002, 01:38 PM
#4
Thread Starter
Lively Member
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.
-
Nov 27th, 2002, 03:01 PM
#5
Fanatic Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|