dispose form
-
Hi I´m creating my own "MessageBox" -like class, derived from ::Form. I want the messagebox to close when I press the "OK" button , i.e. to work as if the "x" (close)-button was pressed. I don´t know where to find the code for this. Can anyone help? sincerely doneirik
-
Hi I´m creating my own "MessageBox" -like class, derived from ::Form. I want the messagebox to close when I press the "OK" button , i.e. to work as if the "x" (close)-button was pressed. I don´t know where to find the code for this. Can anyone help? sincerely doneirik
doneirik wrote: I want the messagebox to close when I press the "OK" button All messageboxes are like that... Call CDialog::OnOK(); on the click event of your OK Button.. Ninety-eight percent of the thrill comes from knowing that the thing you designed works, and works almost the way you expected it would. If that happens, part of you is in that machine.