📄 form10.frm
字号:
VERSION 5.00
Object = "{6B7E6392-850A-101B-AFC0-4210102A8DA7}#1.2#0"; "COMCTL32.OCX"
Object = "{A964BDA3-3E93-11CF-9A0F-9E6261DACD1C}#2.0#0"; "RESIZE32.OCX"
Begin VB.Form Form10
Caption = "矩形波导"
ClientHeight = 6600
ClientLeft = 60
ClientTop = 345
ClientWidth = 5985
Icon = "Form10.frx":0000
LinkTopic = "Form10"
MDIChild = -1 'True
ScaleHeight = 6600
ScaleWidth = 5985
Begin VB.PictureBox Picture7
Height = 5300
Left = 400
ScaleHeight = 5235
ScaleWidth = 5085
TabIndex = 8
Top = 600
Visible = 0 'False
Width = 5150
Begin VB.Image Image7
Height = 5300
Left = 0
Stretch = -1 'True
Top = 0
Width = 5150
End
End
Begin VB.PictureBox Picture6
Height = 5300
Left = 400
ScaleHeight = 5235
ScaleWidth = 5085
TabIndex = 7
Top = 600
Visible = 0 'False
Width = 5150
Begin VB.Image Image6
Height = 5300
Left = 0
Stretch = -1 'True
Top = 0
Width = 5150
End
End
Begin VB.PictureBox Picture5
Height = 5300
Left = 400
ScaleHeight = 5235
ScaleWidth = 5085
TabIndex = 6
Top = 600
Visible = 0 'False
Width = 5150
Begin VB.Image Image5
Height = 5300
Left = 0
Stretch = -1 'True
Top = 0
Width = 5150
End
End
Begin VB.PictureBox Picture4
Height = 5300
Left = 400
ScaleHeight = 5235
ScaleWidth = 5085
TabIndex = 5
Top = 600
Visible = 0 'False
Width = 5150
Begin VB.Image Image4
Height = 5300
Left = 0
Stretch = -1 'True
Top = 0
Width = 5150
End
End
Begin VB.PictureBox Picture3
Height = 5300
Left = 400
ScaleHeight = 5235
ScaleWidth = 5085
TabIndex = 4
Top = 600
Visible = 0 'False
Width = 5150
Begin VB.Image Image3
Height = 5300
Left = 0
Stretch = -1 'True
Top = 0
Width = 5150
End
End
Begin VB.PictureBox Picture2
Height = 5300
Left = 400
ScaleHeight = 5235
ScaleWidth = 5085
TabIndex = 3
Top = 600
Visible = 0 'False
Width = 5150
Begin VB.Image Image2
Height = 5300
Left = 0
Stretch = -1 'True
Top = 0
Width = 5150
End
End
Begin VB.PictureBox Picture1
Height = 5300
Left = 400
ScaleHeight = 5235
ScaleWidth = 5085
TabIndex = 2
Top = 600
Width = 5150
Begin VB.Image Image1
Height = 5300
Left = 0
Stretch = -1 'True
Top = 0
Width = 5150
End
End
Begin ComctlLib.TabStrip TabStrip1
Height = 6000
Left = 80
TabIndex = 1
Top = 100
Width = 5805
_ExtentX = 10239
_ExtentY = 10583
_Version = 327682
BeginProperty Tabs {0713E432-850A-101B-AFC0-4210102A8DA7}
NumTabs = 7
BeginProperty Tab1 {0713F341-850A-101B-AFC0-4210102A8DA7}
Caption = "TE01"
Key = ""
Object.Tag = ""
ImageVarType = 2
EndProperty
BeginProperty Tab2 {0713F341-850A-101B-AFC0-4210102A8DA7}
Caption = "TE10"
Key = ""
Object.Tag = ""
ImageVarType = 2
EndProperty
BeginProperty Tab3 {0713F341-850A-101B-AFC0-4210102A8DA7}
Caption = "TE11"
Key = ""
Object.Tag = ""
ImageVarType = 2
EndProperty
BeginProperty Tab4 {0713F341-850A-101B-AFC0-4210102A8DA7}
Caption = "TE21"
Key = ""
Object.Tag = ""
ImageVarType = 2
EndProperty
BeginProperty Tab5 {0713F341-850A-101B-AFC0-4210102A8DA7}
Caption = "TM11"
Key = ""
Object.Tag = ""
ImageVarType = 2
EndProperty
BeginProperty Tab6 {0713F341-850A-101B-AFC0-4210102A8DA7}
Caption = "TM21"
Key = ""
Object.Tag = ""
ImageVarType = 2
EndProperty
BeginProperty Tab7 {0713F341-850A-101B-AFC0-4210102A8DA7}
Caption = "TM22"
Key = ""
Object.Tag = ""
ImageVarType = 2
EndProperty
EndProperty
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "宋体"
Size = 9.75
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
End
Begin VB.CommandButton cmdOK
Caption = "确定"
Height = 350
Left = 4380
TabIndex = 0
Top = 6180
Width = 1000
End
Begin ResizeLibCtl.ReSize ReSize1
Left = 120
Top = 6090
_Version = 131072
_ExtentX = 741
_ExtentY = 741
_StockProps = 0
Enabled = -1 'True
FormMinWidth = 0
FormMinHeight = 0
FormDesignHeight= 6600
FormDesignWidth = 5985
End
End
Attribute VB_Name = "Form10"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub cmdOK_Click()
Form10.Hide
End Sub
Private Sub Form_Load()
'窗体居中
Me.Width = 6100
Me.Left = 400
Me.Top = 400
Me.Height = 7000
Image1.Picture = LoadPicture(App.Path & "\image\j-te01.bmp")
Image2.Picture = LoadPicture(App.Path & "\image\j-te10.bmp")
Image3.Picture = LoadPicture(App.Path & "\image\j-te11.bmp")
Image4.Picture = LoadPicture(App.Path & "\image\j-te21.bmp")
Image5.Picture = LoadPicture(App.Path & "\image\j-tm11.bmp")
Image6.Picture = LoadPicture(App.Path & "\image\j-tm21.bmp")
Image7.Picture = LoadPicture(App.Path & "\image\j-tm22.bmp")
End Sub
Private Sub TabStrip1_Click()
Dim i As Integer
'显示并激活选中的选项卡控件
'隐藏并禁止所有其它控件
For i = 1 To TabStrip1.Tabs.Count
If i = TabStrip1.SelectedItem.Index Then
Me.Picture1.Visible = False
Me.Picture2.Visible = False
Me.Picture3.Visible = False
Me.Picture4.Visible = False
Me.Picture5.Visible = False
Me.Picture6.Visible = False
Me.Picture7.Visible = True
ElseIf i = TabStrip1.SelectedItem.Index + 1 Then
Me.Picture1.Visible = False
Me.Picture2.Visible = False
Me.Picture3.Visible = False
Me.Picture4.Visible = False
Me.Picture5.Visible = False
Me.Picture6.Visible = True
Me.Picture7.Visible = False
ElseIf i = TabStrip1.SelectedItem.Index + 2 Then
Me.Picture1.Visible = False
Me.Picture2.Visible = False
Me.Picture3.Visible = False
Me.Picture4.Visible = False
Me.Picture5.Visible = True
Me.Picture6.Visible = False
Me.Picture7.Visible = False
ElseIf i = TabStrip1.SelectedItem.Index + 3 Then
Me.Picture1.Visible = False
Me.Picture2.Visible = False
Me.Picture3.Visible = False
Me.Picture4.Visible = True
Me.Picture5.Visible = False
Me.Picture6.Visible = False
Me.Picture7.Visible = False
ElseIf i = TabStrip1.SelectedItem.Index + 4 Then
Me.Picture1.Visible = False
Me.Picture2.Visible = False
Me.Picture3.Visible = True
Me.Picture4.Visible = False
Me.Picture5.Visible = False
Me.Picture6.Visible = False
Me.Picture7.Visible = False
ElseIf i = TabStrip1.SelectedItem.Index + 5 Then
Me.Picture1.Visible = False
Me.Picture2.Visible = True
Me.Picture3.Visible = False
Me.Picture4.Visible = False
Me.Picture5.Visible = False
Me.Picture6.Visible = False
Me.Picture7.Visible = False
ElseIf i = TabStrip1.SelectedItem.Index + 6 Then
Me.Picture1.Visible = True
Me.Picture2.Visible = False
Me.Picture3.Visible = False
Me.Picture4.Visible = False
Me.Picture5.Visible = False
Me.Picture6.Visible = False
Me.Picture7.Visible = False
End If
Next
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -