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
Printable View
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
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);
}
}
}
Woot.
if only I had included... using System.Windows.Forms;
ah well. Thanks!