I Need a Close Dialog
I'm trying to make my program prompt to Close when
an event is fired.
currently I just have:
Close();
Which works perfectly fine except It does not prompt the user if they really want to close the application or not
I have tried
result= MessageBox::Show("Are you sure you want to exit?","Exit",MessageBoxButtons::YesNo,MessageBoxIcon::Question);
if (result==DialogResult::Yes)
{ Close(); }
but It gives me a Compile error, Saying 'Yes'
is a undeclared identifier. Please Someone with C++ knowlege, Help me.

