PlanetSquires Forums

Support Forums => Other Software and Code => Topic started by: gian young on March 08, 2005, 11:57:52 PM

Title: Form Resizing and Positioning
Post by: gian young on March 08, 2005, 11:57:52 PM
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  :?
Title: Form Resizing and Positioning
Post by: Roger Garstang on March 09, 2005, 12:29:01 AM
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
Title: Form Resizing and Positioning
Post by: gian young on March 09, 2005, 02:10:12 AM
Thank you greatly Roger.

Best Regards

Gian Young