PC Review
Forums
Newsgroups
Microsoft DotNet
Microsoft Dot NET Framework Forms
Modal forms... Help!
Forums
Newsgroups
Microsoft DotNet
Microsoft Dot NET Framework Forms
Modal forms... Help!
![]() |
Modal forms... Help! |
|
|
Thread Tools | Rate Thread |
|
|
#1 |
|
Guest
Posts: n/a
|
Hi, I'm building an application that has many windows and I'm using modals as part of that... but I have a problem...
First of all I was building this as mdi but when a modal form then tried to show a non-modal form in the mdi it failed... so I changed the app to non-mdi. Now the problem I have is that when the modal dialog comes up it locks ALL current windows, although new non-modal forms can be started from the modal dialog and they all work together. Why do I want to do this? I'll describe a simple example.. An application has 2 main windows, these manage data that has no impact on the other window. So when window A opens a modal dialog I'm expecting A to be locked, pending the closure of the modal, but I still want B to be usable.... Is this actually achievable? HOW! I've tried examining the properties of forms during runtime but I see no obvious clues as to what's going on under the covers and how I can make it do what I want.. Thanks in advance. G |
|
|
|
#2 |
|
Guest
Posts: n/a
|
In ShowDialog method of the Windows.Form class you can find Owner parameter.
Try to set it, it specifies the owner of the modal window. -- Maniaque cape[A]fromru[dot]com |
|
|
|
#3 |
|
Guest
Posts: n/a
|
Tried it but it makes no difference...
|
|
|
|
#4 |
|
Guest
Posts: n/a
|
Well.... let's see..... Hm, maybe you should use another thread for a second
form (named B, as far as I remember), and then second thread should't be paused... -- .... blood, sex, sugar, magic... cape[A]fromru[dot]com |
|
![]() |
|
| Thread Tools | |
| Rate This Thread | |
|
|

Main Page 

