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

📄 frmsplash.frm

📁 这个是VB环境开发的,我也是转载的把原来的Access数据库改成了SQl Server数据库.希望大家可以借鉴
💻 FRM
字号:
VERSION 5.00
Begin VB.Form frmSplash 
   BorderStyle     =   0  'None
   Caption         =   "Form1"
   ClientHeight    =   3225
   ClientLeft      =   0
   ClientTop       =   0
   ClientWidth     =   4680
   LinkTopic       =   "Form1"
   Picture         =   "frmSplash.frx":0000
   ScaleHeight     =   3225
   ScaleWidth      =   4680
   ShowInTaskbar   =   0   'False
   StartUpPosition =   2  'CenterScreen
   Begin VB.Timer Timer1 
      Interval        =   1000
      Left            =   3840
      Top             =   2280
   End
   Begin VB.Label Label2 
      AutoSize        =   -1  'True
      BackStyle       =   0  'Transparent
      Caption         =   " 库 存 管 理 系 统 "
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   18
         Charset         =   134
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      ForeColor       =   &H00FFFF80&
      Height          =   360
      Left            =   360
      TabIndex        =   0
      Top             =   1560
      Width           =   3630
   End
End
Attribute VB_Name = "frmSplash"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False


Private Sub Form_Load()
On Error GoTo l
    Dim Str As String
    Set cn = New Connection
    '连接Access数据库
    'cn.ConnectionString = "provider=microsoft.jet.oledb.4.0;data source=" & _
    'App.Path & "\data\jxcdb.mdb;"
    '连接Sql Server 数据库
    cn.ConnectionString = "Provider=SQLOLEDB.1;Password=sa;Persist Security Info=False;User ID=sa;Initial Catalog=JxcDb;Data Source=192.168.0.6"

    cn.CursorLocation = adUseClient
    cn.Open
    Exit Sub
l:  MsgBox err.Description
End Sub

Private Sub label1_Click()
    Unload Me
End Sub

Private Sub Timer1_Timer()
    If Timer1.Interval = 1000 Then
       Unload Me ' UserLoginForm.Visible = True
       MDIMain.Show
       UserLoginForm.Show 1
    End If
End Sub

⌨️ 快捷键说明

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