Posted 19 years ago by painetraine
Avatar
I had a user using an app that uses the TabStrip control, and they received the following error:

Top Level Exception
Type: System.ArithmeticException
Message: Overflow o underflow durante un'operazione aritmetica.
Source: System.Drawing
Stack Trace: at System.Drawing.Font.Initialize(FontFamily family, Single emSize, FontStyle style, GraphicsUnit unit, Byte gdiCharSet, Boolean gdiVerticalFont)
at System.Drawing.Font..ctor(FontFamily family, Single emSize, FontStyle style, GraphicsUnit unit)
at System.Drawing.Font..ctor(Font prototype, FontStyle newStyle)
at ActiproSoftware.TabStripPanel.DocumentListTabStripPanel.OnPaint(PaintEventArgs e)
at System.Windows.Forms.Control.PaintWithErrorHandling(PaintEventArgs e, Int16 layer, Boolean disposeEventArgs)
at System.Windows.Forms.Control.WmPaint(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

Also, the location in the app where the tab strip was located there was simply a big red X in place of the tab strip. Since the only non .NET framework error is in the TabStripPanel code, is this something that might be an issue with the TabStrip control?

Thanks

Comments (1)

Posted 19 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
It appears like the Font it's using isn't being found on their system. Probably either have them install the Font used by the control or change the Font property of the control before it's displayed.


Actipro Software Support

The latest build of this product (v2.0.0208) was released 19 years ago, which was after the last post in this thread.