An unhandled exception of type 'System.ArithmeticException' occurred in system.drawing.dll

  • Thread starter microsoft.public.dotnet.framework.windowsforms
  • Start date
M

microsoft.public.dotnet.framework.windowsforms

I had to reinstall Visual Studio.NET 2003 and ever since then I get this
error whenever my application tries to open a WindowsForm. Even the simplest
project with nothing more than a WindowsForm and a single button and no
custom code at all.

An unhandled exception of type 'System.ArithmeticException' occured in
system.drawing.dll
Additional information: Overflow or underflow in the arithmetic operation.

I never had this problem before... Is there something in my environment that
I need to set?
 
H

Herfried K. Wagner [MVP]

microsoft.public.dotnet.framework.windowsforms said:
I had to reinstall Visual Studio.NET 2003 and ever since then I get this
error whenever my application tries to open a WindowsForm. Even the
simplest
project with nothing more than a WindowsForm and a single button and no
custom code at all.

An unhandled exception of type 'System.ArithmeticException' occured in
system.drawing.dll
Additional information: Overflow or underflow in the arithmetic operation.

I assume that this problem is related to the fonts you are using. Maybe
resetting the control's/form's 'Font' property or setting it to "Tahoma" or
similar will solve the problem.
 
M

microsoft.public.dotnet.framework.windowsforms

Hmmm, that didn't work. Ya know, it doesn't seem to matter what form it is.
Every form I create has this problem.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top