G
Guest
Hi.
I was wondering if anyone knew how to obtain the average char width for the
default font used on labels. That or how to obtain the Graphics object for a
Bitmap object. I'm trying to write some code that would automatically add
newline codes (\n in C#) to a String so that it doesn't exceed a specific
width. While textboxes provide this functionality, labels don't, and I can't
use a textbox for what I'm currently doing because textboxes don't support
transperent beckgrounds.
If anyone could solve one of my problems, I'd be grateful.
Reuben.
I was wondering if anyone knew how to obtain the average char width for the
default font used on labels. That or how to obtain the Graphics object for a
Bitmap object. I'm trying to write some code that would automatically add
newline codes (\n in C#) to a String so that it doesn't exceed a specific
width. While textboxes provide this functionality, labels don't, and I can't
use a textbox for what I'm currently doing because textboxes don't support
transperent beckgrounds.
If anyone could solve one of my problems, I'd be grateful.
Reuben.