PC Review Forums Newsgroups Microsoft DotNet Microsoft Dot NET Framework Forms Modal forms... Help!

Reply

Modal forms... Help!

 
Thread Tools Rate Thread
Old 20-01-2004, 01:31 AM   #1
=?Utf-8?B?R3d5bg==?=
Guest
 
Posts: n/a
Default Modal forms... Help!


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
  Reply With Quote
Old 20-01-2004, 09:13 AM   #2
Maniaque
Guest
 
Posts: n/a
Default Re: Modal forms... Help!

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


  Reply With Quote
Old 20-01-2004, 10:46 AM   #3
=?Utf-8?B?R3d5bg==?=
Guest
 
Posts: n/a
Default Re: Modal forms... Help!

Tried it but it makes no difference...
  Reply With Quote
Old 20-01-2004, 11:27 AM   #4
Maniaque
Guest
 
Posts: n/a
Default Re: Modal forms... Help!

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


  Reply With Quote
Reply



Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off