moving between forms - Programmers Heaven

Howdy, Stranger!

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

Categories

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.