• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 428
  • Last Modified:

Overwrite, Overwrite All, Don't Overwrite Dialog


I have a textbox that allows the user to enter a temperature for a room.

if the temperature already exists for this room, then a dialog should pop up asking the user if they want to overwrite temperature value for this room.

And if the user choses overwrite all, then the application will not have to check if others room already have temperature. It will just update the temperature without popping up that dialog in the future.

  • 2
1 Solution
Bob LearnedCommented:
What do you wish to know?

TungVanAuthor Commented:

Can I have to accomplish this without having to create a dialog? Can I just use messagebox?
Bob LearnedCommented:
Yes, you can use a MessageBox:

  if (MessageBox.Show("Overwrite temperature?", "Overwrite", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes)

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now