T
Terry
I have a very basic program, but for some reason I can't get it to behave
properly.
What I want is a basic form with a TabControl that fills the entire form.
The tab control should have 4 tabs with a single PropertyGrid control on
each tab that fills it's parent's tab page's client area.
Here's what I did.
1. Create a new project.
2. Add a TabControl to it, set its docking property to "Fill"
3. Add four tabs
4. Add a PropertyGrid to each tab and set the ProperyGrid's docking
property to "Fill".
In the designer, it displays properly when you switch tabs, but when you
actually run the program, only the very last PropertyGrid control that was
added displays properly.
It appears that all but the very last PropertyGrid control is sizing to the
area of the Form instead of its container.
Am I missing something? It does not do this with other controls I have
tried, just the PropertyGrid.
Terry
properly.
What I want is a basic form with a TabControl that fills the entire form.
The tab control should have 4 tabs with a single PropertyGrid control on
each tab that fills it's parent's tab page's client area.
Here's what I did.
1. Create a new project.
2. Add a TabControl to it, set its docking property to "Fill"
3. Add four tabs
4. Add a PropertyGrid to each tab and set the ProperyGrid's docking
property to "Fill".
In the designer, it displays properly when you switch tabs, but when you
actually run the program, only the very last PropertyGrid control that was
added displays properly.
It appears that all but the very last PropertyGrid control is sizing to the
area of the Form instead of its container.
Am I missing something? It does not do this with other controls I have
tried, just the PropertyGrid.
Terry