Question about Deckworkspace.Show Docking

Topics: CAB & Smart Client Software Factory
Oct 22, 2005 at 5:01 AM
originally posted by: DLorenz

Is there a specific reason that you are setting the incoming control's Dock to Fill instead of Top? Right now, I have a SmartPart that has a groupbox that is set to Dock.Fill. I then place controls inside of the groupbox. When I run it on the Deckworkspace, the Groupbox will fill up the entire page, making it look rather dumb. I was wondering if setting it to .Top instead of .Fill would hurt anything. Thanks.
Oct 22, 2005 at 5:54 AM
originally posted by: jasonwzcy

I think you can place the groupbox inside a pannel user control, so the Dock.Fill will not change the groupbox in any way.

I guess the reason behind Dock.Fill is to give an unified look, otherwise the samrtpart may have different background color/image than the deckworkspace itself, it may look odd.