PC Review


Reply
Thread Tools Rate Thread

Dialog form closes when hidden using ShowWindow( hwnd, SW_HIDE)

 
 
=?Utf-8?B?TWluYXM=?=
Guest
Posts: n/a
 
      25th Jan 2007
Hello,

I have a windows forms application (AppForm) which opens another form to
configure its settings (SettingsForm).
I also have a windows desktop manager application called VirtuaWin installed
on my computer. This program allowing to maintain multiple desktops. When the
active desktop is changed, it hides all windows in the current desktop and
then shows all windows that belong to the new one.
Here is the problem: if I open SettingsForm from the AppForm, then switch to
another desktop, and then switch back to my original desktop, then
SettingsForm disappears. In the debugger I see that the SettingsForm was
closed with DialogResult::Cancel result. By the way, this happens when the
SettingsForm is shown using ShowDialog() method. Show() method does not do
this.

Could anyone tell me why does the form close when its window is hidden and
how can I override this behavior?

Here is another message sent to this forum with a similar issue:
http://www.devnewsgroups.net/group/m...opic35042.aspx

I am using Microsoft Visual C++ .NET 2003 with Windows .NET framework 1.1

Please let me know if any additional information or details are needed.

Thanks,
Minas.

 
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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Form.Show( ) vs extern ShowWindow vooose Microsoft C# .NET 2 8th Mar 2006 09:12 PM
ShowWindow and form size kurotsuke Microsoft C# .NET 0 29th Dec 2004 08:22 AM
Main window hidden after dialog closes =?Utf-8?B?TUlrZSBIYW5zb24=?= Microsoft Dot NET Framework Forms 1 23rd Jul 2004 01:30 PM
Getting hWnd for API call or Color choosing dialog Jeff Microsoft Excel Programming 13 5th Jun 2004 03:18 AM
Hwnd for the Options dialog? Fred Block Microsoft Outlook Program Addins 3 24th Dec 2003 04:36 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 04:00 AM.