Hi,
When I first installed Visual Studio 2003,
I noticed I was getting the follow error when showing a form: A first chance exception of type 'System.ArithmeticException' occurred in system.drawing.dll
Additional information: Overflow or underflow in the arithmetic operation
It is being thrown on the line that attempts to add the controls to the form's controls collection
It is being thrown on the line when trying to add any control in the form either it is textbox or button.
and i have tried folloeing code to solve this proble but it is not solved
<System.Runtime.InteropServices.DllImport("msvcrt.dll")> _
Private Function _controlfp(ByVal IN_New As Integer, ByVal IN_Mask As
Integer) As Integer
End Function
Private Const _MCW_EW As Integer = &H8001F
Private Const _EM_INVALID As Integer = &H10
Private Sub FixFPU()
_controlfp(_MCW_EW, _EM_INVALID)
End Sub
When I first installed Visual Studio 2003,
I noticed I was getting the follow error when showing a form: A first chance exception of type 'System.ArithmeticException' occurred in system.drawing.dll
Additional information: Overflow or underflow in the arithmetic operation
It is being thrown on the line that attempts to add the controls to the form's controls collection
It is being thrown on the line when trying to add any control in the form either it is textbox or button.
and i have tried folloeing code to solve this proble but it is not solved
<System.Runtime.InteropServices.DllImport("msvcrt.dll")> _
Private Function _controlfp(ByVal IN_New As Integer, ByVal IN_Mask As
Integer) As Integer
End Function
Private Const _MCW_EW As Integer = &H8001F
Private Const _EM_INVALID As Integer = &H10
Private Sub FixFPU()
_controlfp(_MCW_EW, _EM_INVALID)
End Sub