Home All Groups Group Topic Archive Search About

Application class problem

Author
14 Apr 2005 2:34 PM
Agnes
I got a progress bar form which run in my project A very well, Now, I copy
it to anthoer project B , It got a error that "
class Applicaiton is not declared" , I don't know where is the problem .
Does any one know ??
or Does anyone try Marquee progress Bar ?


    Public Shared Sub Main()
        Application.EnableVisualStyles()
        Application.Run(New frmProgressBar)
    End Sub

Author
14 Apr 2005 5:36 PM
Herfried K. Wagner [MVP]
"Agnes" <ag***@dynamictech.com.hk> schrieb:
>I got a progress bar form which run in my project A very well, Now, I copy
>it to anthoer project B , It got a error that "
> class Applicaiton is not declared" , I don't know where is the problem .
> Does any one know ??
>
>
>    Public Shared Sub Main()
>        Application.EnableVisualStyles()
>        Application.Run(New frmProgressBar)
>    End Sub

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

> or Does anyone try Marquee progress Bar ?

Displaying a progressbar control in marquee mode
<URL:http://dotnet.mvps.org/dotnet/faqs/?id=marqueeprogressbar&lang=en>

--
M S   Herfried K. Wagner
M V P  <URL:http://dotnet.mvps.org/>
V B   <URL:http://classicvb.org/petition/>
Author
15 Apr 2005 3:12 AM
Crouchie1998
Did you create the progress bar class yourself or is it the one used in the
Windows Forms?

Crouchie1998
BA (HONS) MCP MCSE
Official Microsoft Beta Tester