• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 181
  • Last Modified:

System.Drawing.Dll arithmetic exception...

Based on my search on the internet, I think many people have encountered this problem. But I did not find any solutions for it.

I just installed Win XP and VS.NET 2003, nothing else. When I run a form with either a textbox or listbox in it I get a System.Arithmetic.Exception error in System.Drawing on the line that sets the textbox to a new instance of TextBox class.

What do you think is the cause of this error?
0
mhdhallak
Asked:
mhdhallak
  • 2
  • 2
1 Solution
 
Jeff CertainCommented:
Probably a problem in your code... can you post the code where you create the textbox?
0
 
programmer_bmbCommented:
I have the same problem it does not code problem ...
for me it occures in :
me.txtNumber = new Form.Textbox .....

What's the solution for this problem ?
0
 
Jeff CertainCommented:
How is me.txtNumber declared?
0
 
mhdhallakAuthor Commented:
I didn't write any code other the one written by the form designer!!!
0
 
programmer_bmbCommented:

mhdhallak : you will find the solution here:
http://support.microsoft.com/default.aspx?scid=kb%3Ben-us%3B326219#kb5

Thanks :)
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now