borland C++ builder 6 (closing windows)

This is a discussion on borland C++ builder 6 (closing windows) within the C++ Programming forums, part of the General Programming Boards category; I opened a form using this command: Code: Form2 = new TForm2(Application); Form2->ShowModal(); delete Form2; (its my about menu)... now ...

  1. #1
    Registered User
    Join Date
    Apr 2003
    Posts
    29

    borland C++ builder 6 (closing windows)

    I opened a form using this command:
    Code:
    Form2 = new TForm2(Application);
      Form2->ShowModal();
      delete Form2;
    (its my about menu)... now how do i close it with a ok button? what do i put in the ok button code?

  2. #2
    Registered User
    Join Date
    Mar 2002
    Posts
    6
    ...button OKClick...
    {
    Close();
    }

    If your window is an MDIchild you must write in the OnClose option

    Action=caFree();

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. how to make a windows application
    By crvenkapa in forum C++ Programming
    Replies: 3
    Last Post: 03-26-2007, 10:59 AM
  2. dual boot Win XP, win 2000
    By Micko in forum Tech Board
    Replies: 6
    Last Post: 05-30-2005, 03:55 PM
  3. input/output
    By dogbert234 in forum Windows Programming
    Replies: 11
    Last Post: 01-26-2005, 06:57 AM
  4. IE 6 status bar
    By DavidP in forum Tech Board
    Replies: 15
    Last Post: 10-23-2002, 06:31 PM
  5. Manipulating the Windows Clipboard
    By Johno in forum Windows Programming
    Replies: 2
    Last Post: 10-01-2002, 10:37 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21