Actually it’s ten things you must know about .Net, but that sounds a bit pushy. This is not a "12 steps to better code" collection, we’ll be clearing up a lot common misconceptions about the .Net programming in general.
It’s been a while since my last post. I’ve got ported to web development, language changed to C#, and although switching from thick client to web apps is like learning to walk again I think I’m starting to like it. But let’s get started.
I was writing a thin client application where I had to implement some efficiency-oriented business logic, and encountered the problem, that the generic collection of custom data objects can’t be sorted in the DataGridView by simply clicking on the column headers. I started to google up solutions, but either they were for ASP, or they were incomplete, some of them were not usable at all.
This error is indicated by the following exception message: "Cross-thread operation not valid: Control 'AnyControl' accessed from a thread other than the thread it was created on."
Ever got tired of rewriting the same 10-15 lines of Singleton Object implementation code for each class U use it? Met the flexibility of the inherited static member variables, sparks of the overridable static methods?