|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
System.Drawing exceptionI was wondering if anyone had ever seen this error before: Exception message: Invalid parameter used. (source='System.Drawing', method='GetHeight') Portion of the stack trace: System.Drawing.Font.GetHeight(Graphics graphics) at System.Drawing.Font.GetHeight() at System.Drawing.Font.get_Height() at System.Windows.Forms.Control.get_FontHeight() at System.Windows.Forms.TextBoxBase.get_PreferredHeight() at System.Windows.Forms.TextBoxBase.AdjustHeight() at System.Windows.Forms.TextBoxBase.OnHandleCreated(EventArgs e) If anyone has seen this before, I would deeply appreciate some guidance on how to stop it. Nothing is being done that is special - this error just occurs when my program loads. Thanks, Kyjan
Show quote
Hide quote
"Kyjan" <HolySaphAn***@gmail.com> schrieb: Which font do you use for your form and/or textbox? Check out if changing > I was wondering if anyone had ever seen this error before: > > Exception message: Invalid parameter used. (source='System.Drawing', > method='GetHeight') > > Portion of the stack trace: System.Drawing.Font.GetHeight(Graphics > graphics) > at System.Drawing.Font.GetHeight() > at System.Drawing.Font.get_Height() > at System.Windows.Forms.Control.get_FontHeight() > at System.Windows.Forms.TextBoxBase.get_PreferredHeight() > at System.Windows.Forms.TextBoxBase.AdjustHeight() > at System.Windows.Forms.TextBoxBase.OnHandleCreated(EventArgs e) > > If anyone has seen this before, I would deeply appreciate some guidance > on how to stop it. Nothing is being done that is special - this error > just occurs when my program loads. the font solves the problem. -- M S Herfried K. Wagner M V P <URL:http://dotnet.mvps.org/> V B <URL:http://classicvb.org/petition/> I'm using Verdana as the font. I am using an inherited textbox if that
makes any difference (I'm only inheriting it so I can make sure only numbers go into the textbox). Kyjan
WebBrowser Control Printing
Garbage collection, Unmanaged code and SafeArrays Defining data types for fields, when you a create a file Print pdf from Internet Explorer using VB .NET close Form1 & open Form2 Problem sending Report as EMail - wrong attach. name "untitled.txt" Fastest way to load jpg images ? Regular Expression Question Single event handler for menu convert string array to long array |
|||||||||||||||||||||||