Results 1 to 3 of 3

Thread: [Resolved][2.0] Is there an application object?

  1. #1

    Thread Starter
    Fanatic Member JPicasso's Avatar
    Join Date
    Aug 2001
    Location
    Kalamazoo, MI
    Posts
    843

    [Resolved][2.0] Is there an application object?

    in vb.net one could get information about the program via an application object.
    Things like, well, specifically StartupPath could be gotten.

    Where can I find that in C#?

    Thanks
    Last edited by JPicasso; Jun 14th, 2006 at 12:10 PM.
    Merry Christmas

  2. #2
    PoorPoster iPrank's Avatar
    Join Date
    Oct 2005
    Location
    In a black hole
    Posts
    2,729

    Re: [2.0] Is there an application object?

    Check the System.Windows.Forms.Application object.

    Code:
    namespace WindowsApplication7
    {
        public partial class Form1 : Form
        {
            public Form1()
            {
                InitializeComponent();
            }
    
            private void Form1_Load(object sender, EventArgs e)
            {
                MessageBox.Show(System.Windows.Forms.Application.StartupPath);
            }
        }
    }
    Usefull VBF Threads/Posts I Found . My flickr page .
    "I love being married. It's so great to find that one special person you want to annoy for the rest of your life." - Rita Rudner


  3. #3

    Thread Starter
    Fanatic Member JPicasso's Avatar
    Join Date
    Aug 2001
    Location
    Kalamazoo, MI
    Posts
    843

    Re: [2.0] Is there an application object?

    Woot.

    if only I had included... using System.Windows.Forms;

    ah well. Thanks!
    Last edited by JPicasso; Jun 14th, 2006 at 12:17 PM.
    Merry Christmas

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width