Changing Forms

I am making a program (in delphi 6) which involves a lot of swapping between windows using

[code]formx.showmodal; {where x is the formx is the form name}
[/code]

but this leaves the forms infront of it still showing in the background, is there anyway to remove these forms.

E.g. how would i get rid of a form named 'form1' if i had just loaded 'form2', the

[code]close;[/code]

command still leaves the original form visible.


tnx.

- Kryten

Comments

  • i do not understand exatly what u want
    but why don't u try the command
    [code]Form1.Hide;[/code]

    dj sannie

  • : i do not understand exatly what u want
    : but why don't u try the command
    : [code]Form1.Hide;[/code]
    :
    : dj sannie
    :
    :
    tnx thats perfect, your a genius

    - Kryten
  • Why not use

    formx.close;

    Then you'll close the window instead of hiding.

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories