Application Path

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Sep410
    New Member
    • Jul 2008
    • 77

    Application Path

    Hi,
    I wrote an application in windows form application and now they are telling me they need consol application instead of windows one.

    I never worked with consol application before.Here is my problem I used Application.Sta rtupPath in my code to get the application path an now in new application this is an error.How can I get the application path in my code.
    Thanks,
  • Sep410
    New Member
    • Jul 2008
    • 77

    #2
    Here is the answer:
    System.Windows. Forms is not automatically referenced into a console mode application. You can import System.Windows. Forms into the program class and use application.sta rtup path .

    Comment

    Working...