I have been using the properties of a control in the design window to change
the fonts. I do not directly change the code. Here is an example of the
code VB generates:
Me.txtFirst.Font = New System.Drawing.Font("Arial", 8.25!,
System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point,
CType(0, Byte))
The exception I get is as follow:
An unhandled exception has occurred in your application. If you click
Continue, the application will ignore this error and attempt to continue. If
you click Quit, the application will be shut down immediately.
Overflow or underflow in arithmetic operation.
************** Exception Text **************
System.ArithmeticException: Overflow or underflow in the arithmetic
operation.
at System.Drawing.Font.Initialize(FontFamily family, Single emSize,
FontStyle style, GraphicsUnit unit, Byte gdiCharSet, Boolean
gdiVerticalFont)
at System.Drawing.Font.Initialize(String familyName, Single emSize,
FontStyle style, GraphicsUnit unit)
at System.Drawing.Font..ctor(String familyName, Single emSize)
at
Infragistics.Win.UltraWinToolbars.UltraToolbarsMan ager.DisplayToolTip(String
text)
at
Infragistics.Win.UltraWinToolbars.UltraToolbarsMan ager.DisplayToolTip(ToolBa
se tool)
at Infragistics.Win.UltraWinToolbars.ToolBase.Display ToolTip()
at
Infragistics.Win.UltraWinToolbars.UltraToolbarsMan ager.set_ImmediateToolTipD
isplayMode(Boolean value)
at Infragistics.Win.UltraWinToolbars.ButtonToolUIElem ent.OnMouseHover()
at Infragistics.Win.ControlUIElementBase.NotifyMouseH over(UIElement
element)
at Infragistics.Win.ControlUIElementBase.OnHoverTimer _Tick(Object sender,
EventArgs e)
at System.Windows.Forms.Timer.OnTick(EventArgs e)
at System.Windows.Forms.Timer.DebuggableCallback(IntP tr hWnd, Int32 msg,
IntPtr idEvent, IntPtr dwTime)
"Chris Dunaway" <du******@gmail.com> wrote in message
news:11**********************@g47g2000cwa.googlegr oups.com...
Well, it would be helpful to know what the error is and the code you
used to change the font.