我有一个Panel
被叫。我有默认值为 False 的可见属性。当我用这个代码从我的被叫中调用它时:Panel_Manage_Calculations
Form
Criteria
MenuStrip
MenutStrip_Main
Private Sub ManageCalculationsToolStripMenuItem_Click(sender As Object, e As EventArgs) Handles ManageCalculationsToolStripMenuItem.Click
Criteria.Panel_Manage_Calculations.Show()
End Sub
它没有显示。但是,如果我打开一个按钮Criteria
并使用此代码:
Private Sub Button4_Click(sender As Object, e As EventArgs)
Panel_Manage_Calculations.Show()
End Sub
它会显示。
上唯一的其他对象Criteria
是 a DataGridView
。
从 调用时如何Panel_Manage_Calculations
显示MenutStrip_Main
?
附加信息
在我单击之前可能运行的唯一其他代码是:
Private Sub AddToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MenuItem_Criteria.Click
For Each mdiChild As Form In Me.MdiChildren
If mdiChild.Name = "Criteria" Then
mdiChild.Activate()
Exit Sub
End If
Next
Dim frmClientConfig As New Criteria
frmClientConfig.MdiParent = Me
frmClientConfig.Show()
End Sub