I am working on a resistance calculator for a class, and i need to insert the greek character omega into the final value display, the professor didnt tell us how to and i cant seem to find how to do it anywhere.
thanks for any help
Printable View
I am working on a resistance calculator for a class, and i need to insert the greek character omega into the final value display, the professor didnt tell us how to and i cant seem to find how to do it anywhere.
thanks for any help
i dont think you can insert themQuote:
Originally Posted by madwolf32
Try setting Font to "Symbols" then make a Capital W.
Yes, there are few ways actually:
- use small icon
- use resource file with custom string table for Greek alphabet and label with FontName = "Symbol"
Open attachments to see sample project.
Thanks a lot for the help and it works but now ive got another problem, when i want to display the G for giga it is now greek , its the only letter giving me problems
Try using multipul labels for Greek and non-Greek letters.
the professor wants us to use the same label for both numbers the letters K (kilo) M(mega) and G(giga) as well as the omega character
VB label control doesn't support multiple alphabets ... so you can tell that to your professor and he doesn't believe you - send him over to us. ;)
Try calling up some of your people that are in your class and ask if they did it and can help you and if the didnt do it then have a talk with your professor about it.
Let's get back to serious for a moment, shall we.
Characters K and M are part of "Symbol" font family so that's not a problem. "Problem" is "G" character which "Symbol" doesn't have. You may try to substitute it with chr(86) but I don't know if that would work:
VB Code:
Private Sub Command1_Click() With Label1 .AutoSize = True .FontName = "Symbol" .FontSize = 16 'K = chr(75) 'M = chr(77) 'looks like G = chr(86) 'Omega = chr(87) .Caption = Chr(75) & ", " & Chr(77) & ", " & Chr(86) & ", " & Chr(87) End With End Sub
thanks for the help guys i really appreciate it
So, did it work for you somehow or not ???
what about using the hex code for the letter omega , using a standard font like arial, because omega is in the arial it just doent have a keystroke but it has a unicode hex or ascii hex number