View Single Post
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