Use of "Strange" Characters

  • Thread starter Thread starter eBob.com
  • Start date Start date
E

eBob.com

I'm trying to assign a character from the "Wingding 3" font (0x70) to the
Text property of a Button. I've been searching books and the online help
for hours but have been unable to come up with the syntax. I think that I
have the right code to set the font to Wingding 3. But I haven't been able
to come up with a Text= statement which compiles and gives the right result.

Thanks, Bob
 
I'm trying to assign a character from the "Wingding 3" font (0x70) to the
Text property of a Button. I've been searching books and the online help
for hours but have been unable to come up with the syntax. I think that I
have the right code to set the font to Wingding 3. But I haven't been able
to come up with a Text= statement which compiles and gives the right result.

Thanks, Bob

Bob,
First make sure you have Wingdings 3 font in your "C:\Windows\Fonts"
folder and Just set button's font property to Wingdings 3 from
properties window and set text content using properties window or with
the code::

Button1.text = "your_text"

Regards,

Onur Güzel
 
Wow! What a frustrating experience. I spent hours looking for the syntax I
needed which turned out to be

..Text = ChrW(&H70)

Then it still didn't work because this

System.Drawing.Font("Wingdings 3", 8, FontStyle.Bold)

doesn't throw an exception if you specify an invalid font family name as the
first argument, it just uses something else, and I had specified "Wingding
3" rather than the correct "Wingdings 3" (with an "s"!).

Bob

(a few words for search engines: button font wingding wingdings hex
hexadecimal character conversion cast)
 
Back
Top