Form Resizing and Positioning

Started by gian young, March 08, 2005, 11:57:52 PM

Previous topic - Next topic

gian young

My current FireFly project makes use of a number of forms. After compiling and distributing the .EXE I would like to prevent the user from resizing and repositioning some of these forms.

ie:- I do not want them to be able to click on the form and drag it to a different position and or stretching and resizing the forms.

Can anyone assist me with pointers on how I can implement this either in code or with form properties etc.

Kind Regards
Gian Young
Australia  :?

Roger Garstang

No ThickFrame Style....and/or:

Local lngSystemMenu As Long

lngSystemMenu = GetSystemMenu(HWND_FORM, 0)
RemoveMenu lngSystemMenu, %SC_SIZE, %MF_BYCOMMAND 'no resize
RemoveMenu lngSystemMenu, %SC_MOVE, %MF_BYCOMMAND 'no move

gian young

Thank you greatly Roger.

Best Regards

Gian Young