Graphics.FromHwnd(IntPtr.Zero) returns null, why?
- by Martin Moser
I'm currently investigating a problem with a 3rd party component (DevExpress) in my application.
My issue is quite similar to this one DevExpress KB article. I get the same exception with more less the same stacktrace.
So I used .NET Reflector to find out, what may be null in this scenario, and the only object which is a candiate to be null is…