How to hide control resizing handles in Windows Forms?

I have a UserControl and would like to hide resizing handles during development, like TextBoxControl, which has only two descriptors (left and right) ... the height of the text field is fixed if you don't say it is multi-line. In this case, the text box shows all nine resizing handles.

+4
source share
2 answers

You need to implement a custom constructor ( ControlDesigner ) for your control, and then override the SelectionRules property.

Useful link:

Extension of development time support

+10
source

I think you will need to make your own control and determine the size in the class. I believe that if you inherit a user control, you will always have the ability to resize.

0
source

Source: https://habr.com/ru/post/1304796/


All Articles