---
title: "Explain modal dialog box ?"  
description: "Explain modal dialog box ?"  
author: "Anonymous User"  
published: 2011-03-28  
updated: 2020-09-17  
canonical: https://www.mindstick.com/interview/660/explain-modal-dialog-box  
category: "visual c++"  
tags: ["visual c++", "modal", "modeless", "dialog box", "mindstick", "interview question"]  
reading_time: 1 minute  

---

# Explain modal dialog box ?

A modal dialog box is popped up over the parent dialog( from which it is envoked) it never allows user to go back to parent (calling) dialog box and work until the popped up dialog box is not exited.\
Madal dilog box can be displayed as follows.\
\
Ex. class MyDlg; // Class derived from CDialog.\
MyDlg myDlg; // create an object\
myDlg.DoModal();

## Answers

### Answer by Anonymous User

A modal dialog box is popped up over the parent dialog( from which it is envoked) it never allows user to go back to parent (calling) dialog box and work until the popped up dialog box is not exited.\
Madal dilog box can be displayed as follows.\
\
Ex. class MyDlg; // Class derived from CDialog.\
MyDlg myDlg; // create an object\
myDlg.DoModal();


---

Original Source: https://www.mindstick.com/interview/660/explain-modal-dialog-box

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
