Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Container Padding Ignored
Message
From
28/08/2008 07:30:34
 
 
To
27/08/2008 22:20:23
General information
Forum:
ASP.NET
Category:
Forms
Environment versions
Environment:
C# 2.0
OS:
Windows XP SP2
Network:
Windows 2003 Server
Miscellaneous
Thread ID:
01342302
Message ID:
01342494
Views:
18
Hi John,

You mean check to make sure that it is sufficiently wide to hold the controls? I will look at this, but I have been using AutoSize = true so I "assume" that the (GroupBox) control would appropriately resize itself to accommodate the controls as they are added. Currently I am just manually putting in marginal spacing to get the look and feel correct ... very irritating.

Bill

>Check the Width of the Groupbox. Control width has been my promary problem with getting containers to behave well.
>
>>Has anyone seen conditions under which the Padding property of a container is ignored?
>>
>>I have a scenario in which I Programmatically create a TableLayoutPanel and programmatically populate it with controls. A GroupBox is programmatically created and the TableLayoutPanel programmatically added to it. The GroupBox is then programmatically added to an existing Panel control. I can programmatically set the Padding on the GroupBox control and set the Padding on the existing Panel control in the IDE. However, the controls that are added to these container controls are still butted up against the absoulte borders of the containers, which seems to indicate that the Padding property is being ignored for the containers.
>>
>>Has anyone seen this or am I missing something here?
>>
>>Thanks,
>>Bill
William A. Caton III
Software Engineer
MAXIMUS
Atlanta, Ga.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform