List Info

Thread: Weird ShowModal behaviour




Weird ShowModal behaviour
country flaguser name
New Zealand
2007-06-04 15:41:27

I have one form that opens another form,

Form A is set to bsDialog and created using Application(TfFormA, fFormA)
and show using fFormA.ShowModal, then I have the second form loading
from the first using the same process. Now the problem is, FormB is
shown on the CreateForm procedure, automatically, why is this, anyone
know. I use the same procedure in another app and don't have the problem
at all?

There is no OnCreate procedure for this form either.

Jason

[Non-text portions of this message have been removed]

__._,_.___
.

__,_._,___
Re: Weird ShowModal behaviour
country flaguser name
United States
2007-06-04 15:54:59

Jason Coley wrote:
> I have one form that opens another form,
>
> Form A is set to bsDialog and created using Application(TfFormA, fFormA)

First, read this:

http://www.cs.wisc.edu/~rkennedy/createform

> and show using fFormA.ShowModal, then I have the second form loading
> from the first using the same process. Now the problem is, FormB is
> shown on the CreateForm procedure, automatically, why is this, anyone
> know.

Perhaps the Visible property for that form says that the form should be
visible?

--
Rob

__._,_.___
.

__,_._,___
[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )