📄 mainform.vb
字号:
Imports System.Runtime.Remoting
Public Class MainForm
Private Sub MainForm_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
'调用配置文件注册通道
RemotingConfiguration.Configure(AppDomain.CurrentDomain.SetupInformation.ConfigurationFile, False)
'MsgBox("d")
End Sub
'显示关于窗体
Private Sub AboutMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles AboutMenuItem.Click
If AboutForm.Visible = True Then
AboutForm.Focus()
Else
AboutForm.Show()
AboutForm.MdiParent = Me
End If
End Sub
'显示意见(邮件)窗体
Private Sub MailMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MailMenuItem.Click
If MailForm.Visible = True Then
MailForm.Focus()
Else
MailForm.Show()
MailForm.MdiParent = Me
End If
End Sub
'添加货物
Private Sub AddGoodsMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles AddGoodsMenuItem.Click
If AddGoodsForm.Visible = True Then
AddGoodsForm.Focus()
Else
AddGoodsForm.Show()
AddGoodsForm.MdiParent = Me
End If
End Sub
'添加营业员
Private Sub AddUserMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles AddUserMenuItem.Click
If AddUserForm.Visible = True Then
AddUserForm.Focus()
Else
AddUserForm.Show()
AddUserForm.MdiParent = Me
End If
End Sub
End Class
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -