Wednesday, April 27, 2011

Parameter is not valid

Sometimes you get an error when using GDI+
Parameter is not valid
I happens when using a graphics class sometimes in paint procedure
SO the solution is infact multiple solutions ;Search for undisposed objects that should be disposed or Disposed objects that should not be disposed like (pen,Brush,Rectangle...etc)
Or sometimes in rectangle size or graphics configuration like compositionMode.HighQuality

No comments:

Post a Comment