?? frmlogin.frm
字號:
VERSION 5.00
Object = "{831FDD16-0C5C-11D2-A9FC-0000F8754DA1}#2.0#0"; "MSCOMCTL.OCX"
Begin VB.Form frmlogin
BorderStyle = 1 'Fixed Single
Caption = "Duzi UDP Talk Login..."
ClientHeight = 2655
ClientLeft = 45
ClientTop = 330
ClientWidth = 4335
ClipControls = 0 'False
ControlBox = 0 'False
Icon = "frmlogin.frx":0000
LinkTopic = "Form1"
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 2655
ScaleWidth = 4335
StartUpPosition = 2 '屏幕中心
Begin VB.TextBox txtuserid
Height = 270
Left = 3480
TabIndex = 8
Top = 840
Visible = 0 'False
Width = 735
End
Begin VB.CommandButton cmdexit
Cancel = -1 'True
Caption = "&Exit"
Height = 495
Left = 3360
TabIndex = 6
Top = 1920
Width = 855
End
Begin VB.CommandButton cmdok
Caption = "&Ok"
Default = -1 'True
Height = 495
Left = 3360
TabIndex = 5
Top = 1200
Width = 855
End
Begin VB.TextBox txtself
Height = 1335
Left = 120
MaxLength = 150
MultiLine = -1 'True
TabIndex = 4
Text = "frmlogin.frx":0442
Top = 1200
Width = 3135
End
Begin VB.TextBox txtname
Height = 270
Left = 1320
MaxLength = 10
TabIndex = 0
Top = 360
Width = 2775
End
Begin MSComctlLib.ProgressBar barlogin
Height = 135
Left = 240
TabIndex = 2
Top = 720
Width = 735
_ExtentX = 1296
_ExtentY = 238
_Version = 393216
Appearance = 1
Min = 1
Max = 85
End
Begin VB.VScrollBar vslogin
Height = 495
Left = 735
Max = 85
Min = 1
TabIndex = 1
Top = 120
Value = 1
Width = 255
End
Begin VB.Label Label2
BackStyle = 0 'Transparent
Caption = "About Uself(limited in 200 chars):"
Height = 255
Left = 120
TabIndex = 7
Top = 960
Width = 3135
End
Begin VB.Label Label1
BackStyle = 0 'Transparent
Caption = "Nick Name:"
Height = 255
Left = 1320
TabIndex = 3
Top = 120
Width = 975
End
Begin VB.Image imglogin
Height = 495
Left = 240
Stretch = -1 'True
Top = 120
Width = 495
End
End
Attribute VB_Name = "frmlogin"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit
Dim userid As Integer
Private Sub cmdexit_Click()
End
End Sub
Private Sub cmdok_Click()
If txtname = "" Then
MsgBox "Please Input a Name first!", vbOKOnly, "Warnning"
Exit Sub
End If
If Mid(txtname.Text, 1, 1) = " " Then
txtname.Text = "No name"
End If
txtuserid.Text = userid
frmlogin.Hide
frmip.Show
End Sub
Private Sub Form_Load()
vslogin.Value = 1
barlogin.Value = 1
imglogin.Picture = LoadPicture(App.Path & "\icon\1-1.gif")
End Sub
Private Sub vslogin_Change()
userid = vslogin.Value
imglogin.Picture = LoadPicture(App.Path & "\icon\" & userid & "-1.gif")
barlogin.Value = userid
End Sub
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -