frmSplash.frm
上传用户:yexiandon
上传日期:2022-07-12
资源大小:895k
文件大小:5k
- VERSION 5.00
- Begin VB.Form frmSplash
- BorderStyle = 3 'Fixed Dialog
- ClientHeight = 3240
- ClientLeft = 45
- ClientTop = 45
- ClientWidth = 5685
- ControlBox = 0 'False
- LinkTopic = "Form1"
- MaxButton = 0 'False
- MinButton = 0 'False
- ScaleHeight = 3240
- ScaleWidth = 5685
- ShowInTaskbar = 0 'False
- StartUpPosition = 2 '屏幕中心
- Visible = 0 'False
- Begin VB.Frame fraMainFrame
- Height = 3150
- Left = 45
- TabIndex = 0
- Top = -15
- Width = 5580
- Begin VB.PictureBox Picture1
- BorderStyle = 0 'None
- Height = 1095
- Left = 720
- Picture = "frmSplash.frx":0000
- ScaleHeight = 1095
- ScaleWidth = 1335
- TabIndex = 4
- Top = 240
- Width = 1335
- End
- Begin VB.Timer Timer1
- Interval = 1000
- Left = 480
- Top = 2520
- End
- Begin VB.Label lb
- AutoSize = -1 'True
- Height = 180
- Left = 1200
- TabIndex = 5
- Top = 2760
- Width = 90
- End
- Begin VB.Label lblLicenseTo
- Alignment = 1 'Right Justify
- Caption = "使用权属于:辽宁正昊企业集团"
- Height = 255
- Left = 2400
- TabIndex = 1
- Tag = "使用权属于"
- Top = 600
- Width = 2535
- End
- Begin VB.Label lblProductName
- AutoSize = -1 'True
- Caption = "产品"
- BeginProperty Font
- Name = "宋体"
- Size = 26.25
- Charset = 134
- Weight = 700
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 525
- Left = 480
- TabIndex = 3
- Tag = "产品"
- Top = 1440
- Width = 1080
- End
- Begin VB.Label lblVersion
- Alignment = 1 'Right Justify
- AutoSize = -1 'True
- Caption = "版本"
- BeginProperty Font
- Name = "宋体"
- Size = 12
- Charset = 134
- Weight = 700
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 240
- Left = 3240
- TabIndex = 2
- Tag = "版本"
- Top = 2280
- Width = 510
- End
- End
- End
- Attribute VB_Name = "frmSplash"
- Attribute VB_GlobalNameSpace = False
- Attribute VB_Creatable = False
- Attribute VB_PredeclaredId = True
- Attribute VB_Exposed = False
- '****************************************************************************
- '人人为我,我为人人
- '枕善居收藏整理
- '发布日期:2008/01/21
- '描 述:汽车维修管理系统SQL2000版
- '网 站:http://www.Mndsoft.com/ (VB6源码博客)
- '网 站:http://www.VbDnet.com/ (VB.NET源码博客,主要基于.NET2005)
- 'e-mail :Mndsoft@163.com
- 'e-mail :Mndsoft@126.com
- 'OICQ :88382850
- ' 如果您有新的好的代码别忘记给枕善居哦!
- '****************************************************************************
- Private Sub Form_Load()
- lblVersion.Caption = "版本 " & App.Major & "." & App.Minor & "." & App.Revision
- lblProductName.Caption = App.Title
- With frmLogin
- On Error Resume Next
- Dim MyData() As Byte, VerInfo() As Byte, Ti As Long, Tj As Long
- If .Inet1.StillExecuting = True Then GoTo HDL1
- VerInfo() = .Inet1.OpenURL("http://192.168.1.49/Updata/qx.txt", icString)
- Ti = InStr(1, VerInfo, vbCrLf) + 2
- Tj = InStr(Ti, VerInfo, vbCrLf)
- '检测版本号
- If Val(Left$(VerInfo, Ti - 3)) <= Val(App.Major & "." & App.Minor & App.Revision) Then GoTo HDL1
- If MsgBox("本软件发布了新的版本:" & Left$(VerInfo, Ti - 3) & ",文件大小:" & Mid$(VerInfo, Tj + 2) & _
- ",是否进行在线升级 ?", vbYesNo + vbQuestion, "在线升级") = vbNo Then GoTo HDL1
- 'MyData() = .Inet1.OpenURL("http://192.168.1.49/Updata/Updata.exe", icByteArray)
- 'Open App.Path + "" + Mid$(VerInfo, Ti, Tj - Ti) For Binary Access Write As #1
- End With
- Shell App.Path & "Update.exe", vbNormalFocus
- End
- HDL1:
- Unload frmSplash
- frmLogin.Show vbModal
- If frmLogin.OK Then
- frmMain.Show
- Else
- End
- End If
- End Sub