Search Results

Search found 1 results on 1 pages for 'user482923'.

Page 1/1 | 1 

  • How i can to Destory(free) a Form from memory?

    - by user482923
    Hello, i have 2 Form (Form1 and Form2) in the my project, Form1 is Auto-create forms, but Form2 is Available forms. how i can to create Form2 and unload Form1? I received a "Access validation" Error in this code. Here is Form1 code: 1. uses Unit2; //********* 2. procedure TForm1.FormCreate(Sender: TObject); 3. var a:TForm2; 4. begin 5. a := TForm2.Create(self); 6. a.Show; 7. self.free; // Or self.destory; 8. end; Thanks.

    Read the article

1