Newsgroups : Borland : borland.public.delphi.nativeapi.win32 : 2007 May : Create only one instance of form.
| Subject: | Create only one instance of form. |
| Posted by: | "nick" (nedu..@yahoo.com) |
| Date: | Tue, 8 May 2007 16:28:33 |
I have command button on mdi form which executes following code when
clicked. is there any way to prevent use creating more than one instance of
form without disabling command button? or searching in forms collection.
What is most effective way to do it?
var
test:TfrmTForm;
begin
test := TfrmTForm.Create(self);
test.Show;