How to prevent the user from moving or sizing my form?
Answer / Badam Singh
In Delphi, you can prevent the user from moving or resizing a form by setting the FormStyle property to fsStayOnTop or fsSizeGrip. To prevent users from moving the form, set FormStyle to fsStayOnTop and also set the BorderStyle property to bsDialog.n```delphinForm1: TForm1;nbeginn InitForm(Form1);n Form1.FormStyle := fsStayOnTop;n Form1.BorderStyle := bsDialog;nend;n```
| Is This Answer Correct ? | 0 Yes | 0 No |
How to Get the date of a file using Delphi?
What is the process of exception handling in delphi?
How to Link an animated cursor to a resource file?
How to use the TUpdateSQLProvider.OnUpdateRecord method ?
How to Adjust form size to accommodate a required client size ?
How to prevent the user from moving or sizing my form?
How to Use the WinApi GetObject to get a bitmap?
How to stop IIS when you are writing web applications as ISAPI dll's?
How to Converta RGB color to a CMYK color?
How to retrieve a list of assigned properties ?
How to Test whether you are connected to the internet ?
How to Change RichEdit Font styles with HotKey combinations ?