mpappert
Regular
Hey Everyone ...
I've created my mainForm which I've embedded three panel controls called 'pnlTitleBar' , 'pnlToolbar' and 'pnlView' respectively. I've create a custom TitleBar which I've 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).
I've created two UserControls named 'viewToolbar' and 'viewDashboard'. On the viewToolbar I've 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 won't Fill .. it stays the same size as what is in the IDE ... I'm sure I'm missing something silly, but still being new to VB.NET, any help is much appreciated!
Thanks!
M.
I've created my mainForm which I've embedded three panel controls called 'pnlTitleBar' , 'pnlToolbar' and 'pnlView' respectively. I've create a custom TitleBar which I've 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).
I've created two UserControls named 'viewToolbar' and 'viewDashboard'. On the viewToolbar I've 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 won't Fill .. it stays the same size as what is in the IDE ... I'm sure I'm missing something silly, but still being new to VB.NET, any help is much appreciated!
Thanks!
M.