I get an EInvalidOperation exception thrown when I call the showModal() method of one of my forms. The form is not in my auto-create list, i.e. I create this form using
f = new myForm(args....)
and then I call:
f->ShowModal();
Everything used to work fine until I added a TDateTimePicker object onto this form, from the Windows controls toolbar. After adding this, I get the above exception thrown with the message: "Cannot make a visible window modal". I have checked the Visible property of this form and it is NOT visible immediately before the ShowModal() call. Anyone seen this or have any tips? Thanks!
f = new myForm(args....)
and then I call:
f->ShowModal();
Everything used to work fine until I added a TDateTimePicker object onto this form, from the Windows controls toolbar. After adding this, I get the above exception thrown with the message: "Cannot make a visible window modal". I have checked the Visible property of this form and it is NOT visible immediately before the ShowModal() call. Anyone seen this or have any tips? Thanks!