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
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