BdLm
asked on
delphi FormShow(Sender: TObject);
I can't find the root cause why a form automatically calls the show procedure in my application ....
myForm := TForm.Create(nil)
and the the form is shown .... but why .... ??????? Myform.formstyle := fsnormal;
would like to continue the other way
myForm.ShowModal;
ig (myFirmModalresult := mrOK) then .....
---------- do not make code for me --- just give me a hint where to look after ...
myForm := TForm.Create(nil)
and the the form is shown .... but why .... ??????? Myform.formstyle := fsnormal;
would like to continue the other way
myForm.ShowModal;
ig (myFirmModalresult := mrOK) then .....
---------- do not make code for me --- just give me a hint where to look after ...
ASKER
not in auto create list and
visible = true -->> sorry does not help ... any other idea ???
made another stupid test . thats working ......
procedure TForm1.CreateForm2Click(Se nder: TObject);
begin
Form2 := Tform2.create(application) ;
end;
procedure TForm1.ShowFom2Click(Sende r: TObject);
begin
Form2.show;
end;
visible = true -->> sorry does not help ... any other idea ???
made another stupid test . thats working ......
procedure TForm1.CreateForm2Click(Se
begin
Form2 := Tform2.create(application)
end;
procedure TForm1.ShowFom2Click(Sende
begin
Form2.show;
end;
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
jimyx: already that has been a remark in that form , but did not read it ... :-(
geerd: already changed based on your priv. remarks, thanks
dev. guru : now the problem is that a button is now longer visible after a Insert a element in a list .... and I get this abstract error
geerd: already changed based on your priv. remarks, thanks
dev. guru : now the problem is that a button is now longer visible after a Insert a element in a list .... and I get this abstract error
>myForm := TForm.Create(nil)
MyForm := TMyForm.Create(nil);?
Check unit (where placed TMyForm) for Show or ShowModal call or something like?
Check all units for Show or ShowModal call?
Debug app (F7 key and breakpoints may be help you). ;)
MyForm := TMyForm.Create(nil);?
Check unit (where placed TMyForm) for Show or ShowModal call or something like?
Check all units for Show or ShowModal call?
Debug app (F7 key and breakpoints may be help you). ;)
Check if the visible property is true at design time
Since you are creating it, also check to see that its not in the Auto Create form list