Confirmation Message Box in Visual C# .NET to ask whether user really want to delete | Visual Studio

Опубликовано: 24 Июль 2026
на канале: Coffee Programmer
1,290
7

Can you help me to buy a coffee:
https://www.buymeacoffee.com/coffeepr... DialogResult myResult = MessageBox.Show("Are you sure you want to delete this role?","Delete Confirmation",MessageBoxButtons.OKCancel,MessageBoxIcon.Question);
if (myResult == DialogResult.OK)
{
//DELETING
}
else {

}