J
John Bradley
I knew tackling VB.NET was going to be a huge ordeal.
I've been wasting days trying to do one simple thing -- determining
the "width" of a character in a RichTextBox. Sure, I can set the font
in the box to Courier New, 10 points -- but all the good that will do
me when VB.NET is configured in pixels!!??!!!
I've seen everything in here as an attempt to get my answers:
SizeF
PointP
CreateGraphics
Font(....)
....convert this to that and that to this
MeasureString (which there is apparently a bug)
What the XXXXX gives?!!
Try hitting the F1 key in VB.NET over the keyword "MeasureString" and
the "Call Statement" help topic comes up. So I'm back to square one.
In here trying to find a post that answers the simple question: "How
do I determine the width of a character in pixels if I'm using a
Courier New 10point font?"
With VB6, all I needed was a simple API call. Now it seems that the
simplest tasks in VB.NET requires hours of research on Google in hopes
that someone has come across the same problem. At this rate, my
simple program should be done in about 2 years!
ARRRRRGGGG!
I've been wasting days trying to do one simple thing -- determining
the "width" of a character in a RichTextBox. Sure, I can set the font
in the box to Courier New, 10 points -- but all the good that will do
me when VB.NET is configured in pixels!!??!!!
I've seen everything in here as an attempt to get my answers:
SizeF
PointP
CreateGraphics
Font(....)
....convert this to that and that to this
MeasureString (which there is apparently a bug)
What the XXXXX gives?!!
Try hitting the F1 key in VB.NET over the keyword "MeasureString" and
the "Call Statement" help topic comes up. So I'm back to square one.
In here trying to find a post that answers the simple question: "How
do I determine the width of a character in pixels if I'm using a
Courier New 10point font?"
With VB6, all I needed was a simple API call. Now it seems that the
simplest tasks in VB.NET requires hours of research on Google in hopes
that someone has come across the same problem. At this rate, my
simple program should be done in about 2 years!
ARRRRRGGGG!