Delphi and Kylix

Moderators: pritaeas
Number of threads: 7244
Number of posts: 19051

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
moving between forms Posted by micah on 22 Jul 2003 at 2:47 AM
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
Report
Re: moving between forms Posted by jamesb800 on 22 Jul 2003 at 4:20 AM
: 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



 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.