单机菜单,如何显示菜单名称?
如下:Private Sub 物料管理_Click()
dim s as string
s="物料管理" '单机时如何自动读取到菜单名称
End Sub
Private Sub 物料管理_Click() Dim s As String s = 物料管理.Name Text1.Text = s End Sub
[此贴子已经被作者于2018-10-21 22:28编辑过]
[此贴子已经被作者于2018-10-22 13:28编辑过]
Private Sub 菜单1_Click() Dim s As String s = 菜单1.Name Text1.Text = s End Sub Private Sub 菜单2_Click() Dim s As String s = 菜单2.Name Text1.Text = s End Sub '............ Private Sub 菜单n_Click() Dim s As String s = 菜单n.Name Text1.Text = s End Sub