Home All Groups Group Topic Archive Search About

Application.StartupPath

Author
8 Apr 2005 2:37 PM
rodchar
Hey all,

I have a project that has been using Application.StartupPath successfully
for a couple months now. However, when I pulled up the source just recently
the compiler (or code complete) doesn't recognize this method. Am I missing
something here?

thanks,
rodchar

Author
8 Apr 2005 2:43 PM
Cor Ligthert
Rodchar,

Is it a system.forms project?

Cor
Author
8 Apr 2005 4:25 PM
rodchar
yes.

Show quoteHide quote
"Cor Ligthert" wrote:

> Rodchar,
>
> Is it a system.forms project?
>
> Cor
>
>
>
Author
8 Apr 2005 5:38 PM
Herfried K. Wagner [MVP]
"rodchar" <rodc***@discussions.microsoft.com> schrieb:
> I have a project that has been using Application.StartupPath successfully
> for a couple months now. However, when I pulled up the source just
> recently
> the compiler (or code complete) doesn't recognize this method. Am I
> missing
> something here?

Make sure the project contains a reference to "System.Windows.Forms.dll" and
the namespace 'System.Windows.Forms' is imported.

--
M S   Herfried K. Wagner
M V P  <URL:http://dotnet.mvps.org/>
V B   <URL:http://classicvb.org/petition/>
Author
9 Apr 2005 11:19 PM
rodchar
thanks, this helped.

Show quoteHide quote
"Herfried K. Wagner [MVP]" wrote:

> "rodchar" <rodc***@discussions.microsoft.com> schrieb:
> > I have a project that has been using Application.StartupPath successfully
> > for a couple months now. However, when I pulled up the source just
> > recently
> > the compiler (or code complete) doesn't recognize this method. Am I
> > missing
> > something here?
>
> Make sure the project contains a reference to "System.Windows.Forms.dll" and
> the namespace 'System.Windows.Forms' is imported.
>
> --
>  M S   Herfried K. Wagner
> M V P  <URL:http://dotnet.mvps.org/>
>  V B   <URL:http://classicvb.org/petition/>
>
>