使用点击项

时间:2017-03-22 07:43:25

标签: vb.net devexpress panel

我有一个winform研究,有2个小组(Panel1和Panel2);看图片。 当我点击EngineInputs时,我可以看到Panel1和panel2隐藏,但是当我点击传输输入时我看不到panel2,只看到空白屏幕。

我想要;

引擎输入点击==>请参阅Panel1隐藏Panel2

传输输入点击==>请参阅Panel2隐藏Panel1

请参阅下面的代码

enter image description here

Private Sub inboxItem_LinkClicked(sender As Object, e As DevExpress.XtraNavBar.NavBarLinkEventArgs) Handles inboxItem.LinkClicked
    Panel1.Show()
    Panel2.Hide()
End Sub

Private Sub outboxItem_LinkClicked(sender As Object, e As DevExpress.XtraNavBar.NavBarLinkEventArgs) Handles outboxItem.LinkClicked
    Panel1.Hide()
    Panel2.Show()
End Sub

Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load
    Panel1.Hide()
    Panel2.Hide()
End Sub

结束班

0 个答案:

没有答案