📄 form1.ebf
字号:
VERSION 5.00
Object = "{E491F001-98EC-11D1-9B3D-00C04FAD5AEC}#1.0#0"; "msceimagelist.dll"
Object = "{01FC4473-8DE5-11D1-91B7-00C04FA87A04}#1.0#0"; "mscetabstrip.dll"
Begin VB.Form Form1
Appearance = 0 'Flat
BackColor = &H00FFC0C0&
Caption = "Form1"
ClientHeight = 5265
ClientLeft = 60
ClientTop = 840
ClientWidth = 4980
ForeColor = &H80000008&
ScaleHeight = 5265
ScaleWidth = 4980
ShowOK = -1 'True
Begin CEImageListCtl.ImageList ImageList1
Left = 2160
Top = 1560
_cx = 990
_cy = 990
ImageWidth = 0
ImageHeight = 0
End
Begin CETabStripCtl.TabStrip TabStrip1
Height = 3375
Left = 0
TabIndex = 0
Top = 0
Width = 2895
_cx = 5106
_cy = 5953
FontBold = 0 'False
FontItalic = 0 'False
FontStrikethru = 0 'False
FontUnderline = 0 'False
FontName = "MS Sans Serif"
FontSize = 8
MultiRow = 0 'False
Style = 0
TabFixedHeight = 0
TabFixedWidth = 0
TabWidthStyle = 0
TabsPersist = " 0"
Enabled = -1 'True
End
Begin VBCE.CommandButton Command3
Height = 375
Left = 2880
TabIndex = 5
Top = 960
Width = 975
_cx = 1720
_cy = 661
BackColor = 12632256
Caption = "Clear"
Enabled = -1 'True
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "MS Sans Serif"
Size = 8.25
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Style = 0
End
Begin VBCE.CommandButton Command2
Height = 375
Left = 2880
TabIndex = 4
Top = 480
Width = 975
_cx = 1720
_cy = 661
BackColor = 12632256
Caption = "Remove"
Enabled = -1 'True
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "MS Sans Serif"
Size = 8.25
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Style = 0
End
Begin VBCE.CommandButton Command1
Height = 375
Left = 2880
TabIndex = 3
Top = 0
Width = 975
_cx = 1720
_cy = 661
BackColor = 12632256
Caption = "Add"
Enabled = -1 'True
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "MS Sans Serif"
Size = 8.25
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Style = 0
End
Begin VBCE.TextBox Text1
Height = 375
Left = 720
TabIndex = 2
Top = 3480
Width = 1215
_cx = 2143
_cy = 661
BackColor = -2147483643
BorderStyle = 1
Enabled = -1 'True
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "MS Sans Serif"
Size = 8.25
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = -2147483640
Text = ""
Alignment = 0
HideSelection = -1 'True
Locked = 0 'False
MaxLength = 0
MultiLine = 0 'False
PasswordChar = ""
ScrollBars = 0
End
Begin VBCE.Label Label1
Height = 375
Left = 0
TabIndex = 1
Top = 3480
Width = 735
_cx = 1296
_cy = 661
AutoSize = 0 'False
BackColor = 16761024
BackStyle = 1
BorderStyle = 0
Caption = "Count"
Enabled = -1 'True
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "MS Sans Serif"
Size = 8.25
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = -2147483640
Alignment = 0
UseMnemonic = -1 'True
WordWrap = 0 'False
End
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit
Private Sub Command1_Click()
Dim a As String
Dim i As Integer
i = TabStrip1.Tabs.Count + 1
TabStrip1.Tabs.Add i, , "AddTab"
a = "\a" & i & ".bmp"
ImageList1.Add App.Path & a
TabStrip1.Tabs.Item(i).Image = i
Text1.Text = TabStrip1.Tabs.Count
End Sub
Private Sub Command2_Click()
TabStrip1.Tabs.Remove (TabStrip1.Tabs.Count)
Text1.Text = TabStrip1.Tabs.Count
End Sub
Private Sub Command3_Click()
TabStrip1.Tabs.Clear
Text1.Text = TabStrip1.Tabs.Count
End Sub
Private Sub Form_Load()
ImageList1.ImageHeight = 16
ImageList1.ImageWidth = 16
ImageList1.Add App.Path & "\a1.bmp"
ImageList1.Add App.Path & "\a2.bmp"
ImageList1.Add App.Path & "\a3.bmp"
ImageList1.Add App.Path & "\a4.bmp"
ImageList1.Add App.Path & "\a5.bmp"
Dim i As Integer
'设置标题。
TabStrip1.Tabs(1).Caption = "Time"
TabStrip1.Tabs.Add 2, , "Date"
TabStrip1.Tabs.Add 3, , "Mail"
TabStrip1.ImageList = ImageList1.hImageList
Dim a As String
For i = 1 To 3
a = "\a" & i & ".bmp"
ImageList1.Add App.Path & a
TabStrip1.Tabs.Item(i).Image = i
Next
Text1.Text = TabStrip1.Tabs.Count
End Sub
Private Sub Form_OKClick()
App.End
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -