Strange Autoscroll property

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi, guys.

I am a newer to DOTNET.

Now I use VS.NET 2003 for my project.

I create a class inherited Form
When I want to use
this.AutoScroll = true;
there is an error say: 'myForm' does not contain a definition for 'AutoScroll'

Why?

Thanks in advanced
 
jeff said:
Now I use VS.NET 2003 for my project.

I create a class inherited Form
When I want to use
this.AutoScroll = true;
there is an error say: 'myForm' does not contain a definition for
'AutoScroll'

Why?

First, make sure your class is really inheriting from a class that derives
from 'System.Windows.Forms.Form'. Second, check the spelling of
'AutoScroll' in your code, C# is case-sensitive. If that doesn't solve the
problem, I am curious if 'AutoScroll' appears in the IntelliSense list.
 
Thanks for your replay so rapidly.

I have check my source.

My class is inherting form Forms
and When I use this.
no 'AutoScroll' appears in the IntelliSense list.

E:\Program Files\Microsoft Visual Studio .NET
2003\CompactFrameworkSDK\v1.0.5000\Windows CE\System.Windows.Forms.dll

Is it Version not Correct?

Thanks
and I check the System.Windows.Forms.Form version:
 
jeff said:
My class is inherting form Forms

and When I use this.
no 'AutoScroll' appears in the IntelliSense list.

E:\Program Files\Microsoft Visual Studio .NET
2003\CompactFrameworkSDK\v1.0.5000\Windows CE\System.Windows.Forms.dll

The 'AutoScroll' property is not supported by the .NET Compact Framework.
 
Back
Top