Add a webpage hyperlink (Source Code) in VB to create a label. The source code is as follows:

Source: Internet
Author: User
Add a webpage hyperlink in VB (source code)
 
'Create a label

The labelSource code:

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 sub form_load ()
With label1
. Caption = "My QQ space"
. Font. Underline = true
. Forecolor = vbblue
End
End sub

Private sub form_mousemove (button as integer, shift as integer, X as single, y as Single)
Label1.forecolor = vbblue
Me. mousepointer = 0
End sub

Private sub labelease click ()
ShellExecute me. hwnd, "open", "http://user.qzone.qq.com/848741487", "", "", 5
End sub

Private sub label1_mousemove (button as integer, shift as integer, X as single, y as Single)
Label1.forecolor = vbred
Me. mousepointer = 2
End sub

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.