⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 form1.frm

📁 此源代码可以实现网页和邮箱的超级链接
💻 FRM
字号:
VERSION 5.00
Begin VB.Form Form1 
   Caption         =   "网页和邮箱的超级链接"
   ClientHeight    =   1860
   ClientLeft      =   60
   ClientTop       =   345
   ClientWidth     =   4515
   LinkTopic       =   "Form1"
   ScaleHeight     =   1860
   ScaleWidth      =   4515
   StartUpPosition =   3  '窗口缺省
   Begin VB.CommandButton Command2 
      Caption         =   "链接邮箱"
      Height          =   405
      Left            =   1710
      TabIndex        =   6
      Top             =   1260
      Width           =   1290
   End
   Begin VB.ComboBox Combo1 
      Height          =   300
      ItemData        =   "form1.frx":0000
      Left            =   1320
      List            =   "form1.frx":0013
      TabIndex        =   5
      Text            =   "www.mingrisoft.com"
      Top             =   390
      Width           =   3015
   End
   Begin VB.TextBox Text1 
      Height          =   315
      Left            =   1320
      TabIndex        =   4
      Text            =   "mr@mingrisoft.com"
      Top             =   750
      Width           =   2985
   End
   Begin VB.CommandButton Command1 
      Caption         =   "链接网站"
      Height          =   405
      Left            =   390
      TabIndex        =   3
      Top             =   1260
      Width           =   1290
   End
   Begin VB.CommandButton Command3 
      Caption         =   "退出"
      Height          =   405
      Left            =   3030
      TabIndex        =   2
      Top             =   1260
      Width           =   1290
   End
   Begin VB.Label Label2 
      Caption         =   "邮箱地址:"
      Height          =   255
      Left            =   240
      TabIndex        =   1
      Top             =   780
      Width           =   1035
   End
   Begin VB.Label Label1 
      Caption         =   "超级链接:"
      Height          =   255
      Left            =   240
      TabIndex        =   0
      Top             =   390
      Width           =   1035
   End
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
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_SHOW = 5
Private Sub Command1_Click()
  Dim web As String
  web = Combo1.Text
  ShellExecute 0&, vbNullString, web, vbNullString, vbNullString, 0
End Sub
Private Sub Command2_Click()
  ShellExecute 0&, vbNullString, "mailto:" + Text1.Text, vbNullString, vbNullString, 0
End Sub
Private Sub Command3_Click()
  End
End Sub

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -