HOW TO SHOW YES OR NO BUTTON IN MESSAGEBOX USING C#?

Ankit Singh

Total Post:341

Points:2389
Posted by  Ankit Singh
C# 
C#
 1375  View(s)
Ratings:
Rate this:

I am beginner in C# window Application I am show a Messagebox using MessageBox.Show("Pass Any String") this code of line only show a message box with Ok button but I want to show Yes or No button in Message box please anybody help for resolving this problem.

Thanx in Advanced!

  1. Jeet Verma

    Post:110

    Points:776
    Re: How to show Yes or No button in MessageBox using C#?

    You can use below line of code for showing Yes or No button in a message box: -

    MessageBox.Show("Pass the message", MessageBoxButtons.YesNo, MessageBoxIcon.Warning);

Answer

NEWSLETTER

Enter your email address here always to be updated. We promise not to spam!