---
title: "Dialog Box in .Net"  
description: "A dialog box is a secondary window that allows users to perform a command and provides users with information or progress feedback.Dialog boxes have t"  
author: "Amit Singh"  
published: 2011-05-07  
updated: 2014-09-18  
canonical: https://www.mindstick.com/blog/157/dialog-box-in-dot-net  
category: "c#"  
tags: ["c#"]  
reading_time: 2 minutes  

---

# Dialog Box in .Net

A [dialog box](https://www.mindstick.com/forum/562/jquery-dialog-box-not-closed-in-asp-dot-net-mvc-4) is a [secondary](https://answers.mindstick.com/qa/40407/who-has-been-appointed-as-the-chairperson-of-central-board-of-secondary-education-cbse-replacing-rajesh-kumar-chaturvedi) window that allows users to perform a command and provides users with information or [progress](https://yourviews.mindstick.com/view/284/devotees-arrived-in-prayagraj-while-work-is-still-in-progress) feedback.

[Dialog boxes](https://www.mindstick.com/interview/22949/what-dialog-boxes-are-supported-in-android) have two fundamental types:

[Modal dialog](https://www.mindstick.com/forum/34034/how-to-use-jquery-ui-modal-dialog) boxes require users to complete and close before continuing with the owner window. These dialog boxes are best used for [critical](https://www.mindstick.com/blog/11798/4-critical-factors-to-weigh-in-before-finalizing-a-med-school) or infrequent, one-off tasks that require completion before continuing.

Modeless dialog boxes allow users to switch between the dialog box and the owner window as desired. These dialog boxes are best used for frequent, repetitive, on-going tasks.

Dialog boxes consist of a title bar (to [identify](https://www.mindstick.com/forum/159425/java-app-crash-arrayindexoutofboundsexception-identify-invalid-index) the command, feature, or program where a dialog box came from), an [optional](https://www.mindstick.com/interview/22851/main-difference-between-optional-and-required-keywords) main instruction (to explain the user's objective with the dialog box), various [controls](https://www.mindstick.com/articles/66/how-to-create-controls-at-run-time-in-csharp-dot-net) in the content area (to present options), and commit buttons (to indicate how the user wants to commit to the task).\

##### They consist of the following parts:

- A title bar to identify the [application](https://www.mindstick.com/articles/12824/calculator-application-in-android) or system feature where the dialog box came from.
- A main instruction, with an optional icon, to identify the user's objective with the dialog.
- A content area for descriptive information and controls.
- A command area for commit buttons, including a Cancel button, and optional more option.
- A footnote area for optional additional explanations and help.

---

Original Source: https://www.mindstick.com/blog/157/dialog-box-in-dot-net

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
