Overwrite, Overwrite All, Don't Overwrite Dialog

Posted on 2006-04-10
Last Modified: 2012-06-27


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.

Question by:TungVan
    LVL 96

    Expert Comment

    by:Bob Learned
    What do you wish to know?


    Author Comment


    Can I have to accomplish this without having to create a dialog? Can I just use messagebox?
    LVL 96

    Accepted Solution

    Yes, you can use a MessageBox:

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


    Featured Post

    Enabling OSINT in Activity Based Intelligence

    Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

    Join & Write a Comment

    In one of my recent projects, I was working with IP cameras, I need to take some pictures from the camera and do some processing on it. The first step, was to retrieve the image from camera into Image object. So that it can be displayed or …
    Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
    Need more eyes on your posted question? Go ahead and follow the quick steps in this video to learn how to Request Attention to your question. *Log into your Experts Exchange account *Find the question you want to Request Attention for *Go to the e…
    Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

    731 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    15 Experts available now in Live!

    Get 1:1 Help Now