Graphics.MeasureString Exception: Parameter is Invalid
My C# program threw an exception from the following method: SizeF size = Graphics.MeasureString( text, font ); Unfortunately, the exception’s message was rather obscure: “Parameter is invalid.” After an investigation, I discovered the error occurred because the font had been previously disposed. Unfortunately, the Font class does not have the typical IsDisposed property, so there Related posts: Change Font Size Convert Between Synchronous and Asynchronous Change Font Style














