Last post Jul 22, 2008 07:42 PM by jkirkerx
Jul 19, 2008 02:28 PM|mpaterson|LINK
I've been building some custom controls for a while now but still can't figure something out.
A lot of my controls won't show anything in the designer.
I always get null reference exceptions.
However, in the property window and when I run my app I don't have any issues.
Any ideas as to how I can debug my control in the designer?
Jul 22, 2008 02:38 PM|joezen777|LINK
Are you overriding the render sub?
Jul 22, 2008 07:42 PM|jkirkerx|LINK
Render and run time are 2 different modes of operation.. You can detect design mode, and load a separate set of code just for Design Mode, so you can set your properties. What you decide to paint to the screen in Design mode is clearly up to you.
In design mode, I have to call the render method manually