Invalidate() - NotSupportedException
using Visual Studio 2005 beta 2 / Compact Framework 2.0
I simply call Invalidate from a method within my Form and i get this ->
"An unhandled exception of type 'System.NotSupportedException' occurred in System.Drawing.dll
Additional information: An error message cannot be displayed because an optional resource assembly containing it cannot be found"
Any idea?
[392 byte] By [
Adiraz] at [2007-12-16]
I have re-aranged my code since then, but I remember trying it a few places before posting here. One of them was in a datareceived event method on a SerialPort object. I ended up havin to use CreateGraphics to get around it, but playing around tonight found that indeed Update()/Refresh() work now so who knows, but i won't be testing it it back in the serial port thing. This was before I knew about threads or invoke.