VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



Hyper-link / mailto

by Ej Jones (1 Submission)
Category: Files/File Controls/Input/Output
Compatability: Visual Basic 3.0
Difficulty: Beginner
Date Added: Wed 3rd February 2021
Rating: (9 Votes)

Easily lets you add a link from you VB application or open default email program.

Inputs
textbox
Assumes
Follow these instructions and you should have no problems. 1. Open new project 2. Place two text boxes on the form 3. Place two command buttons on form 4. Copy and paste code on form
Code Returns
Open specific web site, or default email

Rate Hyper-link / mailto

Private Sub Command1_Click()
Dim x
x = Shell("start.exe " & Text1, 0)
End Sub
Private Sub Command2_Click()
Dim x
x = Shell("start.exe mailto:" & Text1, 0)
End Sub

Download this snippet    Add to My Saved Code

Hyper-link / mailto Comments

No comments have been posted about Hyper-link / mailto. Why not be the first to post a comment about Hyper-link / mailto.

Post your comment

Subject:
Message:
0/1000 characters