Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Container Padding Ignored
Message
From
28/08/2008 23:25:20
 
 
To
28/08/2008 07:30:34
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:
01342945
Views:
15
Hey Bill,

I hear that. There's a lot left to be desired in .Net webform layout; in fact, often I look at width and height values that make no sense in the actual layout. Sometimes I just ignore the values when it looks OK at runtime. Arrgghh


>
>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
------------------------------------------------
John Koziol, ex-MVP, ex-MS, ex-FoxTeam. Just call me "X"
"When the going gets weird, the weird turn pro" - Hunter Thompson (Gonzo) RIP 2/19/05
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform