PC Review


Reply
Thread Tools Rate Thread

recovering focus when a modal external app crashes

 
 
Hector
Guest
Posts: n/a
 
      31st Dec 2007
Hi,
I'm having the following issue: I have a windows forms application that
launches an external windows app that is set to modal to my main window.
Modality works as expected, but if I kill the external app from the task
manager, my main window never gets the focus back.
I've tried different things like:
mainWindow.Focus();
mainWindow.TopMost = true;

etc with no success....
Does anyone know how can I make my main window regain focus after the modal
app terminates abnormally?
Thanks,

Hector
 
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
switch focus between modal forms? Ed White Microsoft Dot NET Framework Forms 5 2nd Feb 2009 10:47 PM
excel crashes using form modal or non modal redbeard2008 Microsoft Excel Crashes 4 20th Mar 2008 03:14 PM
Set focus on modal form Janez Microsoft Dot NET Framework Forms 4 11th Nov 2004 08:44 AM
Modal form doesn't get the focus.... Albert Tollkuçi Microsoft Dot NET Framework Forms 7 2nd Apr 2004 06:29 AM
Loss of Focus of Modal Window rwright@prospectin.ca Microsoft Word Document Management 1 17th Oct 2003 04:12 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:59 PM.