Click here to Skip to main content
15,890,882 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I've looked at several answers already that instruct to just set the style to fixed but I can't due to the nature of my form, I want my form to look like this example[^], I'm currently achieving this by the following:

ControlBox = False
FormBorderStyle = Sizable
MaximizeBox = False
MinimizeBox = False

It works perfect but allows the user to re-size the form, is there a way to stop the user re-sizing the form, I'm currently using the method of setting the form minimum size and maximum size to the same size, but this still shows the re-size cursor when hovering over the border, how do I stop this?

Thanks for any help
Posted

A quick earch sould give you the answer:
http://stackoverflow.com/questions/5169131/c-making-a-form-non-resizable[^]

lots more here[^]
 
Share this answer
 
Comments
Kieran Crown 25-Mar-13 9:29am    
I can't change the form border style as stated above because then the style of the form that is needed (in the example link) is lost.
Add these:
VB
SizeGripStyle = Hide
'FormBorderStyle = FixedSingle
'or
FormBorderStyle = FixedToolWindow
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900