Modal main form? Desktop as parent?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I'm trying to create a modal DialogBox\Form from a process that is not a .net
form. I can call .ShowDialog() but the form is not modal since I can't set a
parent. Is there a way to set the desktop as the parent? Thanks
 
Eric,

You cannot create system modal dialog - dialog that is modal against all
running applicaitons. I'm getting the idea that this is what you actually
want to do.
 
Yes, that is what I'm trying to do. Is there a way to emulate a system modal
box?
 
No, this is a feature of the opearing system. If such dialogs (they were
supported by the 16-bit versions of windows) are allowed it will compromise
the stability because one application can take over the whole system. The
same reason is why an application cannot intercept ALT+TAB key combination.
 
Interesting, thank you for the help!

Stoitcho Goutsev (100) said:
No, this is a feature of the opearing system. If such dialogs (they were
supported by the 16-bit versions of windows) are allowed it will compromise
the stability because one application can take over the whole system. The
same reason is why an application cannot intercept ALT+TAB key combination.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top