winforms messagebox with button
string message = "Do you want to close this window?";
string title = "Close Window";
MessageBoxButtons buttons = MessageBoxButtons.YesNo;
DialogResult result = MessageBox.Show(message, title, buttons);
if (result == DialogResult.Yes) {
this.Close();
} else {
// Do something
}
Also in C#:
- unity how to move an object
- open new window c# wpf
- isGrounded script for copy
- unity clamp rotation
- c# post request
- decalre an int list mvc
- edit bool from diffirent script
- C# webclient submit form
- c# resize bitmap
- how to create and trigger a function unity animation events
- c# new thread
- getcomponent c#
- weakreference tryget c#
- c# regex replace
- out parameters c#
- using serial port in c#
- sort datatable c#
- how to add a gameobject
- percentage in c#
- how to get component in unity c#
- bytes size c#
- how to insert <input> datatype <td> in asp.net core table
- unity generate random color
- asp.net mvc return file