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

📄 login.frm

📁 自己学VB时数据库编程的一个小程序
💻 FRM
字号:
VERSION 5.00
Begin VB.Form login 
   BorderStyle     =   3  'Fixed Dialog
   Caption         =   "数据库设置"
   ClientHeight    =   1860
   ClientLeft      =   45
   ClientTop       =   435
   ClientWidth     =   3075
   LinkTopic       =   "Form1"
   MaxButton       =   0   'False
   MinButton       =   0   'False
   PaletteMode     =   1  'UseZOrder
   ScaleHeight     =   1860
   ScaleWidth      =   3075
   ShowInTaskbar   =   0   'False
   StartUpPosition =   2  '屏幕中心
   Begin VB.CommandButton Command2 
      Caption         =   "取消"
      Height          =   375
      Left            =   1800
      TabIndex        =   7
      Top             =   1320
      Width           =   855
   End
   Begin VB.CommandButton Command1 
      Caption         =   "登陆"
      Height          =   375
      Left            =   240
      TabIndex        =   6
      Top             =   1320
      Width           =   855
   End
   Begin VB.TextBox Text3 
      Height          =   300
      IMEMode         =   3  'DISABLE
      Left            =   1080
      PasswordChar    =   "*"
      TabIndex        =   4
      Top             =   840
      Width           =   1215
   End
   Begin VB.TextBox Text2 
      Height          =   300
      Left            =   1080
      TabIndex        =   2
      Text            =   "sa"
      Top             =   480
      Width           =   1215
   End
   Begin VB.TextBox Text1 
      Height          =   300
      Left            =   1080
      TabIndex        =   0
      Text            =   "COMP20"
      Top             =   120
      Width           =   1215
   End
   Begin VB.Label Label3 
      Caption         =   "密  码:"
      Height          =   255
      Left            =   240
      TabIndex        =   5
      Top             =   840
      Width           =   735
   End
   Begin VB.Label Label2 
      Caption         =   "用户名:"
      Height          =   255
      Left            =   240
      TabIndex        =   3
      Top             =   480
      Width           =   735
   End
   Begin VB.Label Label1 
      Caption         =   "数据库:"
      Height          =   255
      Left            =   240
      TabIndex        =   1
      Top             =   120
      Width           =   735
   End
End
Attribute VB_Name = "login"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False


Private Sub Command1_Click()
shuju = Text1.Text
sa = Text2.Text
mima = Text3.Text

str1 = "Provider=SQLOLEDB.1;Password=" + mima + ";Persist Security Info=False;User ID=" + sa + ";Initial Catalog=pubs;Data Source=" + shuju
authors_show.Adodc1.ConnectionString = str1
addform.Adodc1.ConnectionString = str1
chaxun.Adodc1.ConnectionString = str1
Me.Hide
authors_show.Show
End Sub

Private Sub Command2_Click()
End
End Sub

⌨️ 快捷键说明

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