•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the Pascal and Delphi section within the Software Development category of DaniWeb, a massive community of 423,955 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 4,179 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our Pascal and Delphi advertiser: Programming Forums
Views: 2171 | Replies: 4
![]() |
•
•
Join Date: Feb 2007
Posts: 1
Reputation:
Rep Power: 0
Solved Threads: 0
To make a form invisible, you have to alter the booelan value of its 'VISIBLE' property.
To do this, you need the following assignment:
Form1 being the form name of the form you wish to close, and Form2 being the name of the form you wish to open.
To do this, you need the following assignment:
Form1.Visible := FALSE; Form2.Visible := TRUE;
Last edited by manderton : Feb 18th, 2007 at 9:43 am.
•
•
Join Date: Dec 2006
Location: Romania
Posts: 171
Reputation:
Rep Power: 2
Solved Threads: 16
here is another way to do what you want(MDI Childs):
1. you create another form(probably Form2 in Unit2.pas)
2. in the dpr file of your project delphi will insert another line WHICH must be deleted:
3.in the unit where you want to open the window it must be used the name of the window in the "implementation"section
4.in the onclick() event of the button which will open the window you must put the following code
5. this is all about a simple application with 2 windows
1. you create another form(probably Form2 in Unit2.pas)
2. in the dpr file of your project delphi will insert another line WHICH must be deleted:
begin
Application.Initialize;
Application.CreateForm(TForm1, Form1); { <-- This line is required DO NOT DELETE IT }
Application.CreateForm(TForm2, Form2); { <-- This line will be deleted }
Application.Run;
end. implementation
uses Unit2;form: TForm2; begin form:=TForm2.Create(Self); form.ShowModal; form.Free; end;
![]() |
•
•
•
•
•
•
•
•
DaniWeb Pascal and Delphi Marketplace
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Similar Threads
- Forms in Random access files (Visual Basic 4 / 5 / 6)
- Forms authorization, only want a few links (ASP.NET)
- Fun with Forms (PHP)
- Identification of Web Forms (ASP.NET)
- Hotmail and Submitting Forms (Web Browsers)
Other Threads in the Pascal and Delphi Forum
- Previous Thread: Column number
- Next Thread: Ping-capable components available?


Linear Mode