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
Creating public static class
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.

Kashif Iqbal12 reputationPosted Apr 11, 2006, 8:05 AM EDT
Stan GershengorenRank #4,252 · 355 reputationPosted Apr 24, 2006, 3:55 PM EDT
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.