Spritebatch not working in winforms
- by CodingMadeEasy
I'm using the Winforms sample on the app hub and everything is working fine except my spritebatch won't draw anything unless I call Invalidate in the Draw method. I have this in my initialize method:
Application.Idle += delegate { Invalidate(); };
I used a breakpoint and it is indeed invalidating my program and it is calling my draw method. I…