Windows Develop Bookmark and Share   
 index > Windows Forms Designer > Disable Control Designer for WinForm Control
 

Disable Control Designer for WinForm Control

How Can i disable ControlDesigner for standard WINForm control in VS 2005. i.e. restrict resizing or moving it on form in design time.

For exampe for standartPanel or Button to Lock it is not acceptable.

AoggY  Thursday, May 04, 2006 5:49 PM

Disable the adorners collectionfor this control in designer.

Getadorners through selection service.

AoggY  Friday, August 18, 2006 1:09 PM

Hi,

The ability to resize or move a control is done via the SelectionRules in the control designer. So in order to get the desired behavior you would have to override this method.

Martin

Martin Thorsen - MSFT  Friday, May 05, 2006 6:53 PM
thank you for reply, but it is not custom control. It can be Panel or Button from System.Windows.Forms, and on event i have to disable resizing/dragging it on form in DesignTime. It can be any control.
AoggY  Thursday, May 11, 2006 2:39 PM

I can only get controls Designer, but it is not customizable!

It is not my custom control. Please help! I will get fired!!!!

AoggY  Monday, May 15, 2006 12:52 PM

What is the scenario you are trying to support?

Martin

Martin Thorsen - MSFT  Monday, May 15, 2006 11:33 PM

Disable the adorners collectionfor this control in designer.

Getadorners through selection service.

AoggY  Friday, August 18, 2006 1:09 PM

You can use google to search for other answers

Custom Search

More Threads

• How to create a Multicolumn ComboBox in VB.Net?
• Form modal property?
• duplicate items in designer
• <none>
• Subscribe to UserControl's ParentForm events
• Create Toolbar
• listview back color when background image is set
• ExpandableObjectConverter with multiple objects.
• How to control order of statements in Win Form serialization process?
• Component with DataTables. How to impliment?