Q
Problem solve Get help with specific problems with your technologies, process and projects.

GroupBox inheritance

A reader is developing a custom control inherited from GroupBox class. The reader must change bounds used by components when they are docking.

I'm developing a custom control inherited from GroupBox class.

I need to change bounds used by components when they are docking inside the GroupBox (it seems there's an offset value, 13, on the top docking).

Here is a suggestion: Download Reflector from http:// www.aisto.com/roeder. Browse to the GroupBox class, and take a look at the code in the OnPaint method (it automatically decompiles the IL to C#, VB.NET and other languages). I can't see any fixed offset used in there. You can override that method and use the public GroupBoxRenderer class to pass different bounds and experiment.

Dig Deeper on C# programming language

Have a question for an expert?

Please add a title for your question

Get answers from a TechTarget expert on whatever's puzzling you.

You will be able to add details on the next page.

Start the conversation

Send me notifications when other members comment.

Please create a username to comment.

-ADS BY GOOGLE

SearchCloudComputing

SearchSoftwareQuality

TheServerSide.com

SearchCloudApplications

Close