mpappert
Well-known member
Hey Everyone ...
Ive created my mainForm which Ive embedded three panel controls called pnlTitleBar , pnlToolbar and pnlView respectively. Ive create a custom TitleBar which Ive placed in the pnlTitleBar panel (basically, a label with a graphic and text). The other two panels will host the Toolbar and the application "Views". The Views will be the different screens (like what Outlook displays for the different folders - contacts, inbox etc).
Ive created two UserControls named viewToolbar and viewDashboard. On the viewToolbar Ive added a tlbMain (toolbar) and on the viewDashboard it has a Janus ExplorerBar control.
I have set the pnlView to dock to Top, Left, Bottom, Right and I use the following code to display the panels ...
My problem is this ... the pnlView wont Fill .. it stays the same size as what is in the IDE ... Im sure Im missing something silly, but still being new to VB.NET, any help is much appreciated!
Thanks!
M.
Ive created my mainForm which Ive embedded three panel controls called pnlTitleBar , pnlToolbar and pnlView respectively. Ive create a custom TitleBar which Ive placed in the pnlTitleBar panel (basically, a label with a graphic and text). The other two panels will host the Toolbar and the application "Views". The Views will be the different screens (like what Outlook displays for the different folders - contacts, inbox etc).
Ive created two UserControls named viewToolbar and viewDashboard. On the viewToolbar Ive added a tlbMain (toolbar) and on the viewDashboard it has a Janus ExplorerBar control.
I have set the pnlView to dock to Top, Left, Bottom, Right and I use the following code to display the panels ...
Code:
[MP] Assign the View viewToolbar to pnlToolbar
Dim Toolbar As New viewToolbar()
Toolbar.Dock = DockStyle.Fill
Me.pnlToolbar.Controls.Add(Toolbar)
[MP] Assign the View viewDashboard to pnlView
Dim Dashboard As New viewDashboard()
Dashboard.Dock = DockStyle.Fill
Me.pnlView.Controls.Add(Dashboard)
My problem is this ... the pnlView wont Fill .. it stays the same size as what is in the IDE ... Im sure Im missing something silly, but still being new to VB.NET, any help is much appreciated!
Thanks!
M.