C# |
Qualify it with a type name instead
Getting this error: Cannot be accessed with an instance reference, qualify it with a type name instead. Can someone tell me the code I need to get this working. I have seen other's solutions to similar problems but i'm still not getting it. The line in red letters is the problem.

Sam HobbsRank #107 · 20.5K reputationPosted Jan 22, 2010, 10:20 AM EST
In the future, please invest the time to reduce the code you post to the minimum necessary to create the problem. Yes, it is more work for you, but it is then less work for the person trying to help you. It is what I would do if I were to ask a question, and many times I solve the problem myself when I create a small sample of a problem I am having. And don't just copy and paste code; be sure that the sample code is accurate and does in fact have the problem.
Sam HobbsRank #107 · 20.5K reputationPosted Jan 26, 2010, 7:03 AM EST