The hyperjoin method is implemented in vb! And direct mail!

Source: Internet
Author: User


Create a module
Then add the following code:
Option Explicit
Public Const email = "support@online.com"
Public Const URL = "http://blog.csdn.net/flm2003"
Public 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
Public Const SW_SHOWNORMAL = 1
Public Sub gotoweb ()
Dim Success As Long
Success = ShellExecute (0 &, vbNullString, URL, vbNullString, "C:", SW_SHOWNORMAL)
End Sub
Public Sub sendemail ()
Dim Success As Long
Success = ShellExecute (0 &, vbNullString, "mailto:" & email, vbNullString, "C:", SW_SHOWNORMAL)
End Sub
Then it's easy!
In the form you want to perform a hyper-connection, for example, implementing a LABEL hyper-connection
Add gotoweb or sendemail to the label click event!

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.