I have an UserControl and would like to hide the resizing handles in design-time, just like the TextBoxControl, that has only two handles (left and right ones)... the height of the textbox is fixed, unless you say it is multiline. In that case, the textbox shows all nine resizing handles.
A:
I think you would need to draw your own control and define the size in the class. I believe if you inherit a user control you'll always have the option to resize.
Icono123
2010-03-22 18:53:40
+7
A:
You need to implement a custom designer (ControlDesigner) for your control and then override the SelectionRules
property.
Useful reference:
João Angelo
2010-03-22 18:54:15
Thanks! It worked.
Miguel Angelo
2010-03-22 19:14:33