Hello,
I'm beginner in c#, but i have 7 years experience in VB6.
I just stuck with creating public static class.
my steps is:
1.creating new winform project
2.adding from solution explorer new class
3.changing type of class from "public Class1" to "public static Class1"
4.got an error "The modifier 'static' is not valid for this item"
what can i do?
thanks
Loading
Stan GershengorenPosted Apr 24, 2006, 7:55 PM
If you are in .NET 1.1 then you cannot have a static class, if you are in .NET 2.0 you should be able to do that, of course you cannot inherit from any other class in this case.
Kashif IqbalPosted Apr 11, 2006, 12:05 PM