-
Hide external application
In my application I have to call to an external application which when finishes popups a window saying only that all was ok. This external program doesn't have parameters to avoid that window.
There is any way to hide this window?
Thanks!
I use this code:
System.Diagnostics.Process proc = new System.Diagnostics.Process();
proc.StartInfo.UseShellExecute = false;
proc.StartInfo.CreateNoWindow = true;
proc.StartInfo.WindowStyle = System.Diagnostics.ProcessWindowStyle.Hidden;
proc.StartInfo.FileName = "xxxx";
proc.StartInfo.RedirectStandardError = false;
proc.StartInfo.RedirectStandardOutput = false;
proc.StartInfo.CreateNoWindow = true;
proc.Start();
-
messagebox answer
hi there,
if you dont see the window of this application you are calling ( which you shouldnt be able to see ) then you are doing all right.
the problem is that what you are looking at might not be a pop-up window but rather a message box, like an alert box in javascript or msgbox in vbscript.
if this message box is system or modal it is even worse.
by default, the behaviour of a message box is modal, and on top of this you can make this message box system type, so that you cannot have even access to, for example, the desktop until you are done with this system message box.
my only advise: if this is a message box in the language this application you are calling is written then
1: modify this source code so that no message box is shown by the end of this application, as another version of this very same application.
2: have a command line parameter in this program you call, so that this program knows whether to display or not.
best regards,
tonci korsano
-
Thanks but this application I'm calling is not mine so I can't change anything in it
Similar Threads
-
By allenflame in forum .NET
Replies: 11
Last Post: 07-10-2007, 12:18 AM
-
By anonymous in forum VB Classic
Replies: 1
Last Post: 09-18-2004, 10:30 AM
-
By anonymous in forum VB Classic
Replies: 1
Last Post: 08-28-2004, 03:18 PM
-
By anonymous in forum VB Classic
Replies: 4
Last Post: 04-18-2002, 02:10 PM
-
By Chris Howell in forum VB Classic
Replies: 3
Last Post: 04-11-2000, 08:22 PM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks