Windows Develop Bookmark and Share   
 index > Windows Forms Designer > Custom Designer Problem - Customise the resize handle arround a user control
 

Custom Designer Problem - Customise the resize handle arround a user control

Hello everybody,

I have a custom control in a designer and im trying to modify the thing that appears arround a selected control when in a designer. Problem is that I am unsure of the real name of what it is making searching for a answer alot more difficault. So my question is:

What is the name of the dotted grey line with larger white circles that appears arround a control when selected in Visual Studio?

Thanks,

Jamie
jamjam  Monday, August 04, 2008 1:10 PM

Hi,

Those are 'glyphs' and are added via the GetGlyphs method on the ControlDesigner. Check out http://msdn.microsoft.com/en-us/library/system.windows.forms.design.controldesigner.getglyphs(VS.80).aspx

You need to provide your own ControlDesigner for your custom control and then override this method.

Hope this helps.

Martin

Martin Thorsen - MSFT  Monday, August 04, 2008 8:00 PM

Hi,

Those are 'glyphs' and are added via the GetGlyphs method on the ControlDesigner. Check out http://msdn.microsoft.com/en-us/library/system.windows.forms.design.controldesigner.getglyphs(VS.80).aspx

You need to provide your own ControlDesigner for your custom control and then override this method.

Hope this helps.

Martin

Martin Thorsen - MSFT  Monday, August 04, 2008 8:00 PM
Oh yeah, and then provide your own Glyph, which is added in the GetGlyphs call.

Martin Thorsen - MSFT  Monday, August 04, 2008 10:22 PM

You can use google to search for other answers

Custom Search

More Threads

• winform toolstrip button image size not change
• different form height shown in the screen of notebook and desktop?
• UserControl DataGridView ColumnDesigner
• How to automatically resize a listView control in SmallIcon view, so that all items are visible
• Global Right Mouse Click at Design Time
• Why does the Visual Studio Designer Serialize Generics (e.g. List<>, SortedDictionary<>, etc.) when used as a property in a custom control
• Text Formatting in RichText Box
• Custom dialog box
• Escape Button in a propertyGrid
• Create Control Programatically in Design Time