I am not new to .Net in theory but in practice I am fairly new. I am building an application and I am faced with the typical problem of having N different ways of doing it but have not had sufficient experience with the tool to determine which option is the best. What I am after in this case is the accepted / standard / best way of achieving what I want to acheive.
Here is what I want to do.
I have an application that has the following interface
A = Tree Control
C = Static window that can have other controls placed on it (height of C is fixed but can vary on the width on a resize)
B = Something that can contain another control created at runtime.
The question is about B and C
I need to be able to dynamically create a control and place it in the area defined by B. The control will need to resize when the window resizes and/or when the slider (between the tree control and B/C) is moved. The main point here is I need some sort of parent entity that handles the resize of the dynamically created control - I don't want to have to handle the resize event in every control I create.
Along the lines of
In The ParentContrl
What would be the best solution here?
This will be used to contain 1 or more dynamically created controls like buttons and text boxes. Again I need something to contain these controls.
No need to post source code - unless you really want to - I am looking for the theory rather than the practice.