databarracks
asked on
VB.NET Navigation Panel
Hi there,
I have been searching high and low for a solution to what seems like a standard layout for a navigation pane. I have managed to obtain outlook 'accordion' style navigation panes from around the net.
The one I am currently using is from http://www.codeproject.com/Articles/43181/A-Serious-Outlook-Style-Navigation-Pane-Control and it works really well. The problem I have is that I would like to have a pane or split container to the right of the pane of which will display the appropriate form that I code it to display on click. The same way outlook works when you click calendar or contacts etc.
Please, please can someon point me in the right direction. I have managed to change the panel to show the form but don't know how to dispose of the old form when another button is clicked?
I am sure there is a proper way of having a panel that changes according to the button that been clicked from my navigation form. Basically if you look at a tabbed website or even ms access 2010's navigation pane is what I am looking for? Your help is much appreciated
I have been searching high and low for a solution to what seems like a standard layout for a navigation pane. I have managed to obtain outlook 'accordion' style navigation panes from around the net.
The one I am currently using is from http://www.codeproject.com/Articles/43181/A-Serious-Outlook-Style-Navigation-Pane-Control and it works really well. The problem I have is that I would like to have a pane or split container to the right of the pane of which will display the appropriate form that I code it to display on click. The same way outlook works when you click calendar or contacts etc.
Please, please can someon point me in the right direction. I have managed to change the panel to show the form but don't know how to dispose of the old form when another button is clicked?
Private Sub VButton1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles VButton1.Click
Dim frm As New Form1
frm.TopLevel = False
frm.Parent = Me.Panel1
frm.Show()
frm.Show()
End Sub
Private Sub VButton2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles VButton2.Click
Me.Panel1.Controls.Remove(Form1)
Dim frm2 As New frmBlank
frm2.TopLevel = False
Me.Panel1.Controls.Add(frm2)
frm2.Show()
frm2.Show()
End Sub
I am sure there is a proper way of having a panel that changes according to the button that been clicked from my navigation form. Basically if you look at a tabbed website or even ms access 2010's navigation pane is what I am looking for? Your help is much appreciated
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER