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

📄 frmcheck.frm

📁 管理文档的原代码,可以把扫描的文档归类,便于查询
💻 FRM
字号:
VERSION 5.00
Begin VB.Form FrmCheck 
   BorderStyle     =   1  'Fixed Single
   Caption         =   "网络连接"
   ClientHeight    =   2865
   ClientLeft      =   45
   ClientTop       =   330
   ClientWidth     =   3735
   Icon            =   "FrmCheck.frx":0000
   LinkTopic       =   "Form1"
   MaxButton       =   0   'False
   MinButton       =   0   'False
   ScaleHeight     =   2865
   ScaleWidth      =   3735
   StartUpPosition =   2  'CenterScreen
   Begin VB.TextBox TxtRoot 
      Height          =   375
      Left            =   1320
      TabIndex        =   10
      Top             =   840
      Width           =   1935
   End
   Begin VB.CommandButton CmdCancel 
      Caption         =   "返回(&R)"
      Height          =   375
      Left            =   2160
      TabIndex        =   9
      Top             =   2400
      Width           =   975
   End
   Begin VB.CommandButton CmdOK 
      Caption         =   "确定(&O)"
      Default         =   -1  'True
      Height          =   375
      Left            =   480
      TabIndex        =   8
      Top             =   2400
      Width           =   975
   End
   Begin VB.TextBox TxtPwd 
      Height          =   375
      Left            =   1320
      TabIndex        =   7
      Top             =   1800
      Width           =   1935
   End
   Begin VB.Frame Frame1 
      Height          =   125
      Left            =   0
      TabIndex        =   6
      Top             =   2160
      Width           =   4365
   End
   Begin VB.TextBox TxtUser 
      Height          =   375
      Left            =   1320
      TabIndex        =   5
      Top             =   1320
      Width           =   1935
   End
   Begin VB.PictureBox Picture1 
      BorderStyle     =   0  'None
      Height          =   615
      Left            =   0
      Picture         =   "FrmCheck.frx":0442
      ScaleHeight     =   615
      ScaleWidth      =   4935
      TabIndex        =   3
      Top             =   0
      Width           =   4935
      Begin VB.Timer Timer1 
         Interval        =   50
         Left            =   0
         Top             =   0
      End
   End
   Begin VB.PictureBox Picture2 
      BorderStyle     =   0  'None
      Height          =   135
      Left            =   0
      Picture         =   "FrmCheck.frx":A7E4
      ScaleHeight     =   135
      ScaleWidth      =   7455
      TabIndex        =   1
      Top             =   600
      Width           =   7455
      Begin VB.PictureBox Picture3 
         BorderStyle     =   0  'None
         Height          =   135
         Left            =   1920
         Picture         =   "FrmCheck.frx":C04A
         ScaleHeight     =   135
         ScaleWidth      =   5655
         TabIndex        =   2
         Top             =   0
         Width           =   5655
      End
   End
   Begin VB.Label Label3 
      Caption         =   "路径"
      Height          =   255
      Left            =   480
      TabIndex        =   11
      Top             =   960
      Width           =   735
   End
   Begin VB.Label Label2 
      Caption         =   "密码"
      Height          =   255
      Left            =   480
      TabIndex        =   0
      Top             =   1920
      Width           =   735
   End
   Begin VB.Label Label1 
      Caption         =   "用户名"
      Height          =   255
      Left            =   480
      TabIndex        =   4
      Top             =   1440
      Width           =   735
   End
End
Attribute VB_Name = "FrmCheck"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit

Private Sub CmdCancel_Click()
gRootCancel = True
gUser = TxtUser
Unload Me
End Sub

Private Sub CmdOK_Click()
gRootUser = TxtUser
gRootPwd = TxtPwd
gRootCancel = False
gUser = TxtUser
If TxtRoot <> "" Then
   Shell "net use " + RemoveString(TxtRoot, "\", 2) + " " + gRootPwd + " /user:" + gRootUser
End If
Unload Me
End Sub

Private Sub Form_Activate()
TxtUser.SetFocus
End Sub

Private Sub Form_Load()
On Error GoTo Err
gRootCancel = True
gRootUser = ""
gRootPwd = ""
TxtUser = gUser
TxtUser.SetFocus
Err:
End Sub

Private Sub Timer1_Timer()
 Picture3.Left = Picture3.Left + 50
   If Picture3.Left > Picture2.Left + Picture2.Width Then
      Picture3.Left = Picture2.Left - Picture3.Width
   End If
End Sub

Private Sub TxtRoot_KeyDown(KeyCode As Integer, Shift As Integer)
On Error GoTo Err
If KeyCode = 13 Then TxtUser.SetFocus
Err:
End Sub

Private Sub TxtUser_KeyDown(KeyCode As Integer, Shift As Integer)
If KeyCode = 13 Then
   TxtPwd.SetFocus
End If
End Sub

⌨️ 快捷键说明

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