C# equivelent of VB 6 App.Path

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Gary

    C# equivelent of VB 6 App.Path

    I am looking to show the build information of an
    application built in .Net C#. Back in the VB 6 days, I
    was able to use the app.path property.

    Does anyone know of an equivelant command in C#?

    Gary
  • Ulf Bietz

    #2
    Re: C# equivelent of VB 6 App.Path

    [color=blue]
    > I am looking to show the build information of an
    > application built in .Net C#. Back in the VB 6 days, I
    > was able to use the app.path property.
    >
    > Does anyone know of an equivelant command in C#?
    >
    > Gary[/color]

    Hi,

    try the System.Windows. Forms.Applicati on class

    VB6 app.path would be Application.Sta rtupPath I suppose (don't know VB6 to
    well.... :)

    Ulf


    Comment

    • Traace

      #3
      C# equivelent of VB 6 App.Path

      Try Application.Sta rtupPath

      [color=blue]
      >-----Original Message-----
      >I am looking to show the build information of an
      >application built in .Net C#. Back in the VB 6 days, I
      >was able to use the app.path property.
      >
      >Does anyone know of an equivelant command in C#?
      >
      >Gary
      >.
      >[/color]

      Comment

      • Mattias Sjögren

        #4
        Re: C# equivelent of VB 6 App.Path

        Gary,
        [color=blue]
        >I am looking to show the build information of an
        >application built in .Net C#. Back in the VB 6 days, I
        >was able to use the app.path property.
        >
        >Does anyone know of an equivelant command in C#?[/color]

        Check out





        Mattias

        --
        Mattias Sjögren [MVP] mattias @ mvps.org

        Please reply only to the newsgroup.

        Comment

        • Rich Miller

          #5
          Re: C# equivelent of VB 6 App.Path

          Bill, I think this is what you need

          string stAppPath1;

          stAppPath1 = Environment.Cur rentDirectory;

          Rich

          "Bill Birt" <billbirtsr@hot mail.com> wrote in message
          news:014501c35d d0$2b4bbb30$a30 1280a@phx.gbl.. .[color=blue]
          > Gary,
          >
          > I am an OLD VB programmer as well and find the .Net
          > framework changes the simple things we take for granted
          > in VB. Look at the Application class as it has several
          > methods that point to what the old App.Path property
          > pointed to.
          >
          > Hope this example helps.
          >
          > string path = Application.Use rAppDataPath;
          >
          > Regards,
          >
          > Bill
          >[color=green]
          > >-----Original Message-----
          > >Try Application.Sta rtupPath
          > >
          > >[color=darkred]
          > >>-----Original Message-----
          > >>I am looking to show the build information of an
          > >>application built in .Net C#. Back in the VB 6 days, I
          > >>was able to use the app.path property.
          > >>
          > >>Does anyone know of an equivelant command in C#?
          > >>
          > >>Gary
          > >>.
          > >>[/color]
          > >.
          > >[/color][/color]


          Comment

          Working...