Thursday, July 30, 2009

Visual c++ close application on button click?

i am kinda new to visual programming.


if i create a form, and it has a button on it... how do i close the application if the button is clicked... in other languages its like "Application.Close():" but that didn't work... any and all help would be appreciated...








thanks!





DaCrypto

Visual c++ close application on button click?
try this.Close() if "this" is the main window.





Also try Application.Exit, if you haven't already.
Reply:try OnOK();


No comments:

Post a Comment