📄 main.vb
字号:
Me.MenuItem18.Index = 1
Me.MenuItem18.Text = "垂直窗口"
'
'MenuItem19
'
Me.MenuItem19.Index = 2
Me.MenuItem19.Text = "水平窗口"
'
'MenuItem20
'
Me.MenuItem20.Index = 4
Me.MenuItem20.Text = "帮助"
'
'ToolBar1
'
Me.ToolBar1.Buttons.AddRange(New System.Windows.Forms.ToolBarButton() {Me.ToolBarButton1, Me.ToolBarButton2, Me.ToolBarButton3, Me.ToolBarButton4})
Me.ToolBar1.ButtonSize = New System.Drawing.Size(65, 35)
Me.ToolBar1.DropDownArrows = True
Me.ToolBar1.ImageList = Me.ImageList1
Me.ToolBar1.Location = New System.Drawing.Point(0, 0)
Me.ToolBar1.Name = "ToolBar1"
Me.ToolBar1.ShowToolTips = True
Me.ToolBar1.Size = New System.Drawing.Size(792, 41)
Me.ToolBar1.TabIndex = 0
'
'ToolBarButton1
'
Me.ToolBarButton1.ImageIndex = 0
Me.ToolBarButton1.Text = "预览"
Me.ToolBarButton1.ToolTipText = "预览"
'
'ToolBarButton2
'
Me.ToolBarButton2.ImageIndex = 1
Me.ToolBarButton2.Text = "帮助"
Me.ToolBarButton2.ToolTipText = "帮助"
'
'ToolBarButton3
'
Me.ToolBarButton3.ImageIndex = 2
Me.ToolBarButton3.Text = "注销"
Me.ToolBarButton3.ToolTipText = "注销"
'
'ToolBarButton4
'
Me.ToolBarButton4.ImageIndex = 3
Me.ToolBarButton4.Text = "退出"
Me.ToolBarButton4.ToolTipText = "退出"
'
'ImageList1
'
Me.ImageList1.ImageSize = New System.Drawing.Size(16, 16)
Me.ImageList1.ImageStream = CType(resources.GetObject("ImageList1.ImageStream"), System.Windows.Forms.ImageListStreamer)
Me.ImageList1.TransparentColor = System.Drawing.Color.Transparent
'
'StatusBar1
'
Me.StatusBar1.Location = New System.Drawing.Point(0, 569)
Me.StatusBar1.Name = "StatusBar1"
Me.StatusBar1.Panels.AddRange(New System.Windows.Forms.StatusBarPanel() {Me.StatusBarPanel1, Me.StatusBarPanel2, Me.StatusBarPanel3})
Me.StatusBar1.ShowPanels = True
Me.StatusBar1.Size = New System.Drawing.Size(792, 40)
Me.StatusBar1.TabIndex = 1
Me.StatusBar1.Text = "StatusBar1"
'
'StatusBarPanel1
'
Me.StatusBarPanel1.Alignment = System.Windows.Forms.HorizontalAlignment.Center
Me.StatusBarPanel1.Text = "开发者:俞金妮/任芳"
'
'StatusBarPanel2
'
Me.StatusBarPanel2.Alignment = System.Windows.Forms.HorizontalAlignment.Center
Me.StatusBarPanel2.Text = "人事管理系统"
'
'StatusBarPanel3
'
Me.StatusBarPanel3.Alignment = System.Windows.Forms.HorizontalAlignment.Center
'
'MenuItem22
'
Me.MenuItem22.Index = 2
Me.MenuItem22.Text = "基本工资"
'
'main
'
Me.AutoScaleBaseSize = New System.Drawing.Size(6, 14)
Me.ClientSize = New System.Drawing.Size(792, 609)
Me.Controls.Add(Me.StatusBar1)
Me.Controls.Add(Me.ToolBar1)
Me.IsMdiContainer = True
Me.Menu = Me.MainMenu1
Me.Name = "main"
Me.Text = "人事管理系统"
CType(Me.StatusBarPanel1, System.ComponentModel.ISupportInitialize).EndInit()
CType(Me.StatusBarPanel2, System.ComponentModel.ISupportInitialize).EndInit()
CType(Me.StatusBarPanel3, System.ComponentModel.ISupportInitialize).EndInit()
Me.ResumeLayout(False)
End Sub
#End Region
Private Sub main_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Dim i As Integer
i = Me.StatusBar1.Width
Me.StatusBarPanel1.Width = i / 3
Me.StatusBarPanel2.Width = i / 3
Me.StatusBarPanel3.Width = i - (Me.StatusBarPanel2.Width + Me.StatusBarPanel1.Width)
Dim day1 As Integer
Me.StatusBarPanel3.Text = Now
End Sub
Private Sub main_Closed(ByVal sender As Object, ByVal e As System.EventArgs) Handles MyBase.Closed
End
End Sub
Private Sub MenuItem7_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MenuItem7.Click
Dim f2 As New info
f2.MdiParent = f
f2.Show()
End Sub
Private Sub MenuItem12_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MenuItem12.Click
Dim f2 As New xiugaimima
f2.MdiParent = f
f2.Show()
End Sub
Private Sub MenuItem9_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MenuItem9.Click
Dim f2 As New xiugaimima
f2.MdiParent = f
f2.Show()
End Sub
Private Sub MenuItem4_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MenuItem4.Click
Me.Close()
End Sub
Private Sub MenuItem3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MenuItem3.Click
Dim f2 As New Form1
f2.Show()
Me.Hide()
End Sub
Private Sub MenuItem11_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MenuItem11.Click
Dim f2 As New infoupdate
f2.MdiParent = f
f2.Show()
End Sub
Private Sub MenuItem17_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MenuItem17.Click
Me.LayoutMdi(MdiLayout.Cascade)
End Sub
Private Sub MenuItem18_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MenuItem18.Click
Me.LayoutMdi(MdiLayout.TileVertical)
End Sub
Private Sub MenuItem19_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MenuItem19.Click
Me.LayoutMdi(MdiLayout.TileHorizontal)
End Sub
Private Sub ToolBar1_ButtonClick(ByVal sender As System.Object, ByVal e As System.Windows.Forms.ToolBarButtonClickEventArgs) Handles ToolBar1.ButtonClick
Select Case Me.ToolBar1.Buttons.IndexOf(e.Button)
Case 0
Case 1
Case 2
Dim f2 As New Form1
f2.Show()
Me.Hide()
Case 3
Me.Close()
End Select
End Sub
Private Sub MenuItem8_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MenuItem8.Click
Dim f2 As New renshiguanli
f2.MdiParent = f
f2.Show()
End Sub
Private Sub MenuItem15_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MenuItem15.Click
Dim f2 As New jiangchengchaxun
f2.MdiParent = f
f2.Show()
End Sub
Private Sub MenuItem14_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MenuItem14.Click
Dim f2 As New tongji
f2.MdiParent = f
f2.Show()
End Sub
Private Sub MenuItem21_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MenuItem21.Click
Dim f2 As New zhiwu
f2.MdiParent = f
f2.Show()
End Sub
Private Sub MenuItem22_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MenuItem22.Click
Dim f2 As New renshiguanli
f2.MdiParent = f
f2.Show()
End Sub
End Class
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -