Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. keeping front-end on top

keeping front-end on top

Scheduled Pinned Locked Moved C#
question
4 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    mizitras
    wrote on last edited by
    #1

    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?

    G 1 Reply Last reply
    0
    • M mizitras

      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?

      G Offline
      G Offline
      Giorgi Dalakishvili
      wrote on last edited by
      #2

      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

      M 1 Reply Last reply
      0
      • G Giorgi Dalakishvili

        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

        M Offline
        M Offline
        mizitras
        wrote on last edited by
        #3

        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.

        G 1 Reply Last reply
        0
        • M mizitras

          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.

          G Offline
          G Offline
          Giorgi Dalakishvili
          wrote on last edited by
          #4

          Because from some programs setting WindowStyle to invisible is not enough

          #region signature my articles #endregion

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups