When creating a custom dialog window, like for example a custom message box or a custom input box, you will most probably need to know which dialog button was clicked by the end user. This is very easy to accomplish in C# – all you have to do is set the DialogResult property of the [...]
Sometimes you might require to stop a user from closing your Windows form – maybe because the form is processing something in the background and you don’t want the user to break that process, or maybe because the user does not have access rights to close your application. Either way this is very simple to [...]
The whole concept behind a message box is to display text to the user or to ask a question of some sort. So in practice we can use message boxes to display an error to the user, or maybe to ask the user to confirm something before continuing. A C# MessageBox is a read-only dialog [...]