how do i create a windows dialougue/error message (the little window that pops up and has a message and an ok button) with c++
thanks for the help
how do i create a windows dialougue/error message (the little window that pops up and has a message and an ok button) with c++
thanks for the help
dialougue message
Novice KT
Are you creating a .NET Windows Form or are you using MFC
If you are creating a .NET Windows Form, here is an example:
//Plain message box - Text, title & OK Button
MessageBox::Show("This is an example message box", "Example message box title");
/*
Message box with custom icon and button.
You can change the buttons displayed by using the MessageBoxButtons enum (3rd parameter) and the icon displayed by using the MessageBoxIcon enum.
To change the button simply type (without quotation marks) "MessageBoxButtons::" and select from the list that appears. Take similar steps with "MessageBoxIcon::" to change what the icon is
*/
MessageBox::Show("This is an example message box", "Example message box title", MessageBoxButtons::OK, MessageBoxIcon::Warning);
If you are using MFC then the code will be different. Put a buzz on this post if you are using MFC and not creating a .NET Windows Form.
Hope that helps a bit, but sorry if it doesn't