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. How to open external program from my C# program (Windows-mobile) ,and give this external program the focus ?

How to open external program from my C# program (Windows-mobile) ,and give this external program the focus ?

Scheduled Pinned Locked Moved C#
csharphelptutorialquestion
6 Posts 5 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.
  • E Offline
    E Offline
    E_Gold
    wrote on last edited by
    #1

    hi How to open external program from my C# program (Windows-mobile) , and give this external program the focus ? thank's for any help

    F T C 3 Replies Last reply
    0
    • E E_Gold

      hi How to open external program from my C# program (Windows-mobile) , and give this external program the focus ? thank's for any help

      F Offline
      F Offline
      freakyit
      wrote on last edited by
      #2

      searching helps ^^

      T 1 Reply Last reply
      0
      • E E_Gold

        hi How to open external program from my C# program (Windows-mobile) , and give this external program the focus ? thank's for any help

        T Offline
        T Offline
        The Man from U N C L E
        wrote on last edited by
        #3

        For launching the external app check out Launch an Executable Programatically on Windows Mobile using CreateProcess and C#[^]

        If you have knowledge, let others light their candles at it. Margaret Fuller (1810 - 1850) www.JacksonSoft.co.uk

        1 Reply Last reply
        0
        • F freakyit

          searching helps ^^

          T Offline
          T Offline
          The Man from U N C L E
          wrote on last edited by
          #4

          Not very helpful my friend. This has been reposted a couple of times as no-one seems to know the answer. Google does throw up how to launch another application, but setting the focus is rather more difficult. I don't know how to do it on Windows Mobile, the api's are all different from Windows desktop or server, and I did a bit of checking around as well. Came up dry. If you have some good search terms that find the answer to the activation problem maybe you could post them here. I am intrigued as to what you searched for if it is so easy to find.

          If you have knowledge, let others light their candles at it. Margaret Fuller (1810 - 1850) www.JacksonSoft.co.uk

          L 1 Reply Last reply
          0
          • T The Man from U N C L E

            Not very helpful my friend. This has been reposted a couple of times as no-one seems to know the answer. Google does throw up how to launch another application, but setting the focus is rather more difficult. I don't know how to do it on Windows Mobile, the api's are all different from Windows desktop or server, and I did a bit of checking around as well. Came up dry. If you have some good search terms that find the answer to the activation problem maybe you could post them here. I am intrigued as to what you searched for if it is so easy to find.

            If you have knowledge, let others light their candles at it. Margaret Fuller (1810 - 1850) www.JacksonSoft.co.uk

            L Offline
            L Offline
            Lost User
            wrote on last edited by
            #5

            Perhaps you should then try the mobile development forum, it seems to be more geared for your issue.

            Check out the CodeProject forum Guidelines[^] The original soapbox 1.0 is back![^]

            1 Reply Last reply
            0
            • E E_Gold

              hi How to open external program from my C# program (Windows-mobile) , and give this external program the focus ? thank's for any help

              C Offline
              C Offline
              cdpace
              wrote on last edited by
              #6

              In normal windows applications this will work

              System.Diagnostics.Process process = System.Diagnostics.Process.Start("ProcessName.exe");

              Something like that but i am sure you that you need to use the System.Diagnostic Namespace. Another solution could be to use System.Reflection but you need to do some more research on how to use that namespace but i am certain it's possible with System.Reflection. Best of luck :)

              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