Amit Kumar
Amit Kumar

Reputation: 1059

How to change mouse cursor on window forms edge

I have set Maximize and Minimize size property in my windows form to restrict the increasing or decreasing the form, but when I move my cursor to the edge of form it changes to "<-->" this shape. I do not want this cursor on the edges. It should remain the same as on the full form.

How can i restrict or change the mouse cursor icon on edges of window form?

Upvotes: 1

Views: 699

Answers (1)

Grant Winney
Grant Winney

Reputation: 66439

Instead of setting the MaximumSize and MinimumSize properties on your form, change the FormBorderStyle to FixedSingle. That will prevent your users from changing the size of the form, and prevent the mouse cursor from changing to the "resizing" style cursor.

Upvotes: 3

Related Questions