TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Maha
NA
600
70.2k
DialogResult
Oct 16 2014 7:47 AM
Following program is giving type status to DialogResult. I wish to know whether DialogResult is a type. Problem is highlighted.
using System;
using System.Windows.Forms;
public class HamburgerAddition
{
public static void Main()
{
string question = "Do you want fries with that?";
string caption = "Hamburger addition";
double price = 3.00;
DialogResult
result = MessageBox.Show(question, caption, MessageBoxButtons.YesNo, MessageBoxIcon.Question);
if (result == DialogResult.Yes)
price += 0.75;
MessageBox.Show("Total is " + price.ToString("c"));
}
}
Reply
Answers (
4
)
Rename file extensions in a unknown directory using c#
How can I use sessions in windows application?