how do I put things like ® (alt + 0 + 1 + 7 + 4) into a text box?
Printable View
how do I put things like ® (alt + 0 + 1 + 7 + 4) into a text box?
as a string?
Text1.Text = "® (alt + 0 + 1 + 7 + 4)"
no, I'm sorry, I ment command button
Command1.Caption = "® (alt + 0 + 1 + 7 + 4)"
thanks, I was tring to put it in the propertiy window, and it didn't work, I never thought about the code, thanks
You can do it in the property window by using the Windows "Character Map" program. Run that program, find the character you want, and Copy it. Go back into VB and paste it into the Caption property in the property window.
I tried that, it didn't work... also I can't get the first ascii character to appear in a command button in any way
What - character 0? You're not allowed to, as it is used to mark the end of a string in C++, which is what VB is written in.
Dimava - I beg to differ, but the character map thing will work, as I just did it. In character map, you have to "select" first, then "copy". In the VB property window for the command button caption, you should then be able to paste.
ok... how about characters 1-18 they dont work either
That this ASCII business depends on which font to use. Try switching to a font such as Times New Roman and things should be cleared up.
try this also:
easy!Code:Command1.Caption = "Microsoft" & Chr(174)