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. Runing a run window in os?

Runing a run window in os?

Scheduled Pinned Locked Moved C#
comquestion
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.
  • I Offline
    I Offline
    imran_rafique
    wrote on last edited by
    #1

    In xp prof window when we click start->Run then run window(with title Run) appears is there any way in a program that this window appears programatically ? if it is an exe file where is it? so that i could start it like a process. r00d0034@yahoo.com

    K G 2 Replies Last reply
    0
    • I imran_rafique

      In xp prof window when we click start->Run then run window(with title Run) appears is there any way in a program that this window appears programatically ? if it is an exe file where is it? so that i could start it like a process. r00d0034@yahoo.com

      K Offline
      K Offline
      Kannan Kalyanaraman
      wrote on last edited by
      #2

      To make the window appear programmatically, you need to add reference to shell32 dll in the system32 directory to your c# project. Once this is done, you create an instance of shellclass and call the FileRun method. The code looks like this ShellClass obj = new ShellClass(); obj.FileRun(); Hope this helps. Cheers Kannan

      1 Reply Last reply
      0
      • I imran_rafique

        In xp prof window when we click start->Run then run window(with title Run) appears is there any way in a program that this window appears programatically ? if it is an exe file where is it? so that i could start it like a process. r00d0034@yahoo.com

        G Offline
        G Offline
        Gaul
        wrote on last edited by
        #3

        You could write a dialog box that does the same thing, basically prompting the user for the name of the exe/program, and then passing the information to ShellExecute or CreateProcess (WIN32 API). If you are using C#, then you could use Process class. Gaulles http://www.gaulles.com

        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