adspace
How to Change the main form of an application at runtime ?
Answer Posted / Muinuddeen Baktaber
To change the main form of an application at runtime in Delphi, you can use the Application.MainFormOnTaskbar property. Here's an example:
```
var
NewMainForm: TForm2; // assuming TForm2 is your new main form class
...
NewMainForm := TForm2.Create(nil); // create the new main form object
Application.MainFormOnTaskbar := NewMainForm; // set it as the new main form
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
How to Determine the last access time of a given file ?
How can one prevent a TForm from being moved or resized?
How to Flush binary file from disk cache to disk ?
How to Get the time and date in Universal Time ?
How to Remove drives listed in a TDriveComboBox ?
How to Change the owner of a component at runtime ?
How to Retrieving the program that is associated with a given extension?
How to Print in Delphi without using the TPrinter Unit ?
How to Save a QuickReport custom preview to text?
How to Create resource files?
How to Retrieve the line number that a memo's cursor is on?
How to Change the default width/height of the editor?