Click here to Skip to main content
15,886,799 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello all,

My requirement is, pop-up a modal dialog box on performing action on a user control and it should block only the user control instead of main window.
For ex, MainWindow has a TabControl with many tab items and each tab item has a custom UserControl. On performing actions on a usercontrol(Belongs to a tab ), modal dialog box shall be displayed.But this dialog box should not block user from clicking on other controls like other tab item or some other control.
So how can we restrict the modality of dialog box?
Pls let me know ur input

Thanks.
Posted

1 solution

Your "block only the user control" simply means: it's not modal at all. Isn't that obvious? Think about it: this is inconsistent requirement, or it is just useless. If you can focus some control on your main window, that window may contain your control. (Well, you can simply make your control disabled when a "dialog" (it is not a dialog, actually) is shown.)

The way to go is: review your UI design.

—SA
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900