My textboxes use Tahoma, 9. I want to use the same for my grid. Is is
possible? How do I do this?
I found this:
DataGrid1.Font = New System.Drawing.Font("Microsoft Sans Serif", 8.25!,
System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0,
Byte))
in another forum, but I'm getting "'Point' is not a member of
'System.Drawing.GraphicsUnit'."
If I change Point to Pixel, I get "Overload resolution failed because no
accessible 'New' accepts this number of arguments."
Tim Wilson - 02 Apr 2005 01:49 GMT
I assume by your other post that you're dealing with the Compact Framework.
Not all the constructor overloads for the Font class are supported in the
Compact Framework. Try using the code below.
DataGrid1.Font = New Font("Tahoma", 9.0, FontStyle.Regular)

Signature
Tim Wilson
.Net Compact Framework MVP
> My textboxes use Tahoma, 9. I want to use the same for my grid. Is is
> possible? How do I do this?
[quoted text clipped - 8 lines]
> If I change Point to Pixel, I get "Overload resolution failed because no
> accessible 'New' accepts this number of arguments."
Eve - 05 Apr 2005 19:03 GMT
It worked! Thank You!
> I assume by your other post that you're dealing with the Compact Framework.
> Not all the constructor overloads for the Font class are supported in the
[quoted text clipped - 15 lines]
> > If I change Point to Pixel, I get "Overload resolution failed because no
> > accessible 'New' accepts this number of arguments."