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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C#
  4. Path of current project.

Path of current project.

Scheduled Pinned Locked Moved C#
csharpquestion
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.
  • D Offline
    D Offline
    deepscyberpulse
    wrote on last edited by
    #1

    When working with a C# project, is it possible to get the exact path of the currently open project via code so that it can be displayed say in a messagebox or a textbox ??

    N J 2 Replies Last reply
    0
    • D deepscyberpulse

      When working with a C# project, is it possible to get the exact path of the currently open project via code so that it can be displayed say in a messagebox or a textbox ??

      N Offline
      N Offline
      nidheeshkayal
      wrote on last edited by
      #2

      hope this will help you MessageBox.Show(Application.ExecutablePath.ToString()); this wil return the path of exe -- modified at 7:56 Friday 17th March, 2006

      1 Reply Last reply
      0
      • D deepscyberpulse

        When working with a C# project, is it possible to get the exact path of the currently open project via code so that it can be displayed say in a messagebox or a textbox ??

        J Offline
        J Offline
        jimjo
        wrote on last edited by
        #3

        Hi, Can you please specify what did you mean by 'currently open project'? Do you want to know the physical path in Visual Studio .Net? or when you are running the application? Jim Work smart, not hard ;)

        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