Howdy, Stranger!

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

Categories

Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.

moving between forms

micahmicah Posts: 4Member
Hi,

I want to move to a new form when a button is pressed, hiding (or closing) the old form. I know this must be really easy, but I can't seem to work out how to do it. I tried using Release, but then, when I close the new form, the program is not properly shut down, still appearing as a process in Task Manager. Any suggestions?

Micah

Comments

  • jamesb800jamesb800 Posts: 105Member
    : Hi,
    :
    : I want to move to a new form when a button is pressed, hiding (or closing) the old form. I know this must be really easy, but I can't seem to work out how to do it. I tried using Release, but then, when I close the new form, the program is not properly shut down, still appearing as a process in Task Manager. Any suggestions?
    :
    : Micah
    :
    To show another form use
    Form1.Visible:=false; or Form1.Hide;
    Form2.Visible:=true; or Form2.Show;

    To shut the program down from another form use this....
    Application.Terminate;

    James
Sign In or Register to comment.