How to prevent the user from moving or sizing my form?



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

Post New Answer

More Delphi Interview Questions

How to Get the date of a file using Delphi?

1 Answers  


What is the process of exception handling in delphi?

1 Answers  


How to Link an animated cursor to a resource file?

1 Answers  


How to use the TUpdateSQLProvider.OnUpdateRecord method ?

1 Answers  


How to Adjust form size to accommodate a required client size ?

1 Answers  


How to prevent the user from moving or sizing my form?

1 Answers  


How to Use the WinApi GetObject to get a bitmap?

1 Answers  


How to stop IIS when you are writing web applications as ISAPI dll's?

1 Answers  


How to Converta RGB color to a CMYK color?

1 Answers  


How to retrieve a list of assigned properties ?

1 Answers  


How to Test whether you are connected to the internet ?

1 Answers  


How to Change RichEdit Font styles with HotKey combinations ?

1 Answers  


Categories