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. Open Another Application from a Windows Form

Open Another Application from a Windows Form

Scheduled Pinned Locked Moved C#
question
3 Posts 3 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.
  • P Offline
    P Offline
    polishprogrammer
    wrote on last edited by
    #1

    This is probably a simple question, but how do I open another application from a Windows form? What I basically want to do is execute a search for a file or files, have those files appear in a listbox, then have the application open the selected file using a specific application installed on the user's desktop. It's basically a simplified Windows search application designed for a very specific purpose. Thanks.

    P E 2 Replies Last reply
    0
    • P polishprogrammer

      This is probably a simple question, but how do I open another application from a Windows form? What I basically want to do is execute a search for a file or files, have those files appear in a listbox, then have the application open the selected file using a specific application installed on the user's desktop. It's basically a simplified Windows search application designed for a very specific purpose. Thanks.

      P Offline
      P Offline
      Pete OHanlon
      wrote on last edited by
      #2

      Use System.Diagnostics.Process.Start to start the application. If the file is associated with a default application, that application will be started up - so, for instance, executing Process.Start(@"c:\MyFile.doc"); would start Word and load that document.

      Deja View - the feeling that you've seen this post before.

      My blog | My articles

      1 Reply Last reply
      0
      • P polishprogrammer

        This is probably a simple question, but how do I open another application from a Windows form? What I basically want to do is execute a search for a file or files, have those files appear in a listbox, then have the application open the selected file using a specific application installed on the user's desktop. It's basically a simplified Windows search application designed for a very specific purpose. Thanks.

        E Offline
        E Offline
        Eslam Afifi
        wrote on last edited by
        #3

        System.Diagnostics.Process.Start

        Eslam Afifi

        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