I do user control in MS Visual C #, and there is one thing that I just cannot find the answer to:
How to limit the size, the size of which can be changed when viewing?
For a clear example of what I'm asking, the built-in TrackBar control can only be enlarged, not taller, and displays the resize squares on the left and right in design mode. Is there a way to replicate this for a user control?
I tried setting the MinimumSize and MaximumSize values in the constructor for my control, but this does not produce perfect results.
source
share