keeping front-end on top
-
I've got a GUI which sends commands to a console exe, my backend which does the actual processing. But whenever my frontend calls it, it opens a command console window (even though I don't have any output on screen), but I'm having difficulties to find: - whether I can force the pop-up exe to always stay in the back (I was thinking on a) calling the exe b) immediately getting focus back on my GUI) - maybe there's a way to call the exe, as I'm doing, but send it's window to the system tray (not like the icons and clock of Windows, I mean the space on the left to it, like most programs when you manually minimalize them) But the prefered way how I'd like to handle it: - have the exe and it's totally obsolete console window, be nothing more than a process I can find in Taskmanager. AKA not visible to the user. Any ideas?
-
I've got a GUI which sends commands to a console exe, my backend which does the actual processing. But whenever my frontend calls it, it opens a command console window (even though I don't have any output on screen), but I'm having difficulties to find: - whether I can force the pop-up exe to always stay in the back (I was thinking on a) calling the exe b) immediately getting focus back on my GUI) - maybe there's a way to call the exe, as I'm doing, but send it's window to the system tray (not like the icons and clock of Windows, I mean the space on the left to it, like most programs when you manually minimalize them) But the prefered way how I'd like to handle it: - have the exe and it's totally obsolete console window, be nothing more than a process I can find in Taskmanager. AKA not visible to the user. Any ideas?
You can use process class to launch the another process. If you wan't that process to run in an invisible mode then create an instance of ProcessStartInfo class, set its WindowStyle property to Hidden and set CreateNoWindow property to true. Then use the ProcessStartInfo object to start a new invisible process.
#region signature my articles #endregion
-
You can use process class to launch the another process. If you wan't that process to run in an invisible mode then create an instance of ProcessStartInfo class, set its WindowStyle property to Hidden and set CreateNoWindow property to true. Then use the ProcessStartInfo object to start a new invisible process.
#region signature my articles #endregion
-
Why should I ALSO set the CreateNoWindows property to true, if the WindowStyle is allready invisible? I've tried it, and don't see why I should use the CreateNoWindows.
Because from some programs setting WindowStyle to invisible is not enough
#region signature my articles #endregion