Vb.net devexpress форма ссылка кнопка панель показать проблему
I have a winform study that have 2 panel (Panel1 and Panel2) When I click devexpress link1_button, I can see Panel1 and panel2 hide, but when I click link1_button I cannot see panel2, only see blank screen. I want; link1_button Click ==> see Panel1 hide Panel2 link2_button Click ==> see Panel2 hide Panel1 see my codes below
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 End Class
Что я уже пробовал:
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