Hi,I'm in the process of converting a very large app using the infragistics controls. We currently have a subset of the forms to test with and i'm having a few issues with making it look how we want.Basicaly the GroupBox control doesn't have a padding property so if you dock it inside a container you can't set its padding to make it look nice. Also the same with the ultrapanel. The standard winforms groupbox has padding.. Any ideas how to achieve this? We tried encapsulating the control inside a usercontrol in order to get the padding from the usercontrol, but we didnt get very far. I don't know if we can inherit from these controls and do something with a draw filter or something?RegardsChris
The property you're looking for on the WinGroupBox is called ContentPadding. Here's a link to it's documentation. Although, you'll probably not need it, it's straight forward.
http://help.infragistics.com/NetAdvantage/WinForms/2010.3/CLR2.0/?page=Infragistics2.Win.Misc.v10.3~Infragistics.Win.Misc.UltraGroupBox~ContentPadding.html
Quick edit...for your WinPanel, you can use the command as shown below:
ultraPanel1.ClientArea.Padding = new Padding(5, 5, 5, 5);
Hi,Nah, contentpadding does the inside of the control. Padding does the outside of the control. Imagine a groupbox docked inside a form, or if you have a form with a splitter on and you need to dock the groupbox.. the groupbox is flush with the form. We need to pad that.. Yes i could put all the groupboxes inside a panel, but what a frig.I'd rather encapsulate my own version of the control that mimics the infragistcs group box but has a padding option.RegardsChris