Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / C# / October 2007

Tip: Looking for answers? Try searching our database.

COM MessageBox in need of Closing

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Mike R. - 23 Oct 2007 17:30 GMT
I am creating an application that utilizes a COM application. In certain circumstances, the COM app will create an inaccessible message box which will prevent the first application from working (a deadlock). How do you monitor the COM message loop and dismiss the messagebox when it occurs, using .NET C# from the first application

From http://www.developmentnow.com/g/36_2007_10_0_23_0/dotnet-languages-csharp.ht
Family Tree Mike - 23 Oct 2007 17:53 GMT
It sounds like the COM app was written for a user, and the only way arround
it may be to simulate a user with SendKeys().  You will probably need a code
to run listening for a window to be shown with the name of the messagebox and
send an "{ENTER}" or similar.  If this COM app is launched as a separate
process, then killing the process may be more likely to succeed.  SendKeys
often runs into issues if there is a user interacting while your code is
interacting.

> I am creating an application that utilizes a COM application. In certain circumstances, the COM app will create an inaccessible message box which will prevent the first application from working (a deadlock). How do you monitor the COM message loop and dismiss the messagebox when it occurs, using .NET C# from the first application?
>
> From http://www.developmentnow.com/g/36_2007_10_0_23_0/dotnet-languages-csharp.htm
>
> Posted via DevelopmentNow.com Groups
> http://www.developmentnow.com

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.