Delphi Pages Forums  

Go Back   Delphi Pages Forums > Delphi Forum > General

Lost Password?

Thread Tools Display Modes
Prev Previous Post   Next Post Next
Old 06-12-2019, 04:24 AM
meggyboy meggyboy is offline
Junior Member
Join Date: Oct 2013
Location: Sweden, Klippan
Posts: 1
Send a message via Skype™ to meggyboy
Default Close a form from another form

Let's say I have two forms "Form1" and "Form2".
Form1 contains two buttons, one that creates and displays Form2 and a button to close Form2.

To create Form2 i use:
Form2: = TForm2.Create (Self);
How do I close Form2 from Form1 without getting an access violation?

Last edited by meggyboy; 06-12-2019 at 04:47 AM.
Reply With Quote

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On

Forum Jump

All times are GMT. The time now is 02:18 AM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2019, vBulletin Solutions, Inc.