|
-
Jun 14th, 2006, 09:44 AM
#1
Thread Starter
Fanatic Member
[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
-
Jun 14th, 2006, 11:01 AM
#2
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);
}
}
}
-
Jun 14th, 2006, 12:09 PM
#3
Thread Starter
Fanatic Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|