I opened a form using this command:
(its my about menu)... now how do i close it with a ok button? what do i put in the ok button code?Code:Form2 = new TForm2(Application);
Form2->ShowModal();
delete Form2;
Printable View
I opened a form using this command:
(its my about menu)... now how do i close it with a ok button? what do i put in the ok button code?Code:Form2 = new TForm2(Application);
Form2->ShowModal();
delete Form2;
...button OKClick...
{
Close();
}
If your window is an MDIchild you must write in the OnClose option
Action=caFree();