M
marfi95
My application consists of basically a treeview on the left side,
along with a panel control that takes up the right side. When nodes
are clicked on the left, the data on the right side of the panel is
changed based on that type.
What I'm using are usercontrols, so I can do the visual design of them
in a separate window. when the node is clicked, I assign the parent
of the usercontrol to the panel control that is on the right side of
the window. this is all working great except for a small problem. I
can't get the usercontrol to respect the docking/anchoring properties
so that when the screen is maximized the controls on the usercontrol
get adjusted automatically.
The main control on each usercontrol is a panel that is set to Dock-
Fill. All other controls are placed within this panel accordingly
with Top,Left anchoring. I thought that was all I had to do so that
the panel got filled, but I guess the usercontrol panel is only
filling to the size of the usercontrol.
How do i get the usercontrol to resize (and all of its controls) based
on the size of its parent (which is the panel on the main form).
Hope that made sense.
Thanks !
Mark
along with a panel control that takes up the right side. When nodes
are clicked on the left, the data on the right side of the panel is
changed based on that type.
What I'm using are usercontrols, so I can do the visual design of them
in a separate window. when the node is clicked, I assign the parent
of the usercontrol to the panel control that is on the right side of
the window. this is all working great except for a small problem. I
can't get the usercontrol to respect the docking/anchoring properties
so that when the screen is maximized the controls on the usercontrol
get adjusted automatically.
The main control on each usercontrol is a panel that is set to Dock-
Fill. All other controls are placed within this panel accordingly
with Top,Left anchoring. I thought that was all I had to do so that
the panel got filled, but I guess the usercontrol panel is only
filling to the size of the usercontrol.
How do i get the usercontrol to resize (and all of its controls) based
on the size of its parent (which is the panel on the main form).
Hope that made sense.
Thanks !
Mark