Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 422
  • Last Modified:

Overwrite, Overwrite All, Don't Overwrite Dialog


Hi,

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.


Thanks
0
TungVan
Asked:
TungVan
  • 2
1 Solution
 
Bob LearnedCommented:
What do you wish to know?

Bob
0
 
TungVanAuthor Commented:

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

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

Bob
0

Featured Post

Upgrade your Question Security!

Add Premium security features to your question to ensure its privacy or anonymity. Learn more about your ability to control Question Security today.

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