Problem in Visual Studio

U

Usama

Dear Developers
i m facing a problem in visual studio.net.
whenever i open a new project and run a blank form .it
runs ,but if i put a single object on it like button or
anything it compiles whole code successfully and then
give an error msg .that is
An unhandled exception of
type 'System.ArithmeticException' occurred in
system.drawing.dll

Additional information: Overflow or underflow in the
arithmetic operation.

kindly tell me the solutions
i shall be very thankful to u
Regards
Usama
 
T

Tim Sneath [MS]

Do you also have the .NET Framework 1.0 installed on your machine? If so,
have you tried reinstalling that in case your applications are executing
against the original release of the Framework? Do you get this problem with
command-line applications?

Searching through our intranet, there are a couple of 3rd party applications
that we've noticed causing this problem (Q326919 provides a little detail).
If you have any macro utilities or desktop extensions enabled, you might
want to try disabling them and see whether that helps. You might even try
running the application having booted Windows in safe mode to prove
conclusively whether it's a software conflict.

Failing that, it would be good to see a stack trace if you have one
available (the detailed message in the Debug window that appears when you
run your failing forms application and click Continue).

Best wishes,

Tim Sneath
Microsoft UK
 

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

Members online

Forum statistics

Threads
473,774
Messages
2,569,599
Members
45,175
Latest member
Vinay Kumar_ Nevatia
Top