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.

This was first published in July 2005

There are Comments. Add yours.

 
TIP: Want to include a code block in your comment? Use <pre> or <code> tags around the desired text. Ex: <code>insert code</code>

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
Sort by: OldestNewest

Forgot Password?

No problem! Submit your e-mail address below. We'll send you an email containing your password.

Your password has been sent to: