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

📄 frmopen.frm

📁 vb得100个编程实例
💻 FRM
字号:
VERSION 5.00
Begin VB.Form frmopen 
   Caption         =   "Open Page"
   ClientHeight    =   1830
   ClientLeft      =   60
   ClientTop       =   345
   ClientWidth     =   6195
   HelpContextID   =   20
   LinkTopic       =   "Form1"
   MaxButton       =   0   'False
   MinButton       =   0   'False
   ScaleHeight     =   1830
   ScaleWidth      =   6195
   StartUpPosition =   1  '所有者中心
   Begin VB.CommandButton cmdcancel 
      Cancel          =   -1  'True
      Caption         =   "Cancel"
      Height          =   375
      Left            =   3990
      TabIndex        =   4
      Top             =   1110
      Width           =   1095
   End
   Begin VB.CommandButton cmdchoose 
      Caption         =   "Choose File"
      Height          =   375
      Left            =   2430
      TabIndex        =   3
      Top             =   1110
      Width           =   1095
   End
   Begin VB.CommandButton cmdopen 
      Caption         =   "Open"
      Default         =   -1  'True
      Height          =   375
      Left            =   1020
      TabIndex        =   2
      Top             =   1110
      Width           =   1095
   End
   Begin VB.TextBox txturl 
      Height          =   285
      Left            =   90
      TabIndex        =   1
      Top             =   600
      Width           =   5835
   End
   Begin VB.Label Label1 
      Caption         =   "Enter the URL or choose the local file you would like to open"
      Height          =   345
      Left            =   120
      TabIndex        =   0
      Top             =   120
      Width           =   5805
   End
End
Attribute VB_Name = "frmopen"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub cmdcancel_Click()
    Unload Me
End Sub

Private Sub cmdchoose_Click()
    frmBrowser.CommonDialog1.Action = 1
    txturl = frmBrowser.CommonDialog1.FileName
End Sub

Private Sub cmdopen_Click()
    Me.Hide
    If Len(Trim(txturl)) <> 0 Then
        frmBrowser.WebBrowser1.Navigate txturl.text
    End If
    Unload Me
End Sub

⌨️ 快捷键说明

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