eramgarden Posted January 21, 2005 Posted January 21, 2005 In MS word, in "Insert" menu, there's a "Symbol" menu function where users can insert special characters in their docs.. My manager wants a simialr functionality in the WinForm app we're doing.. any ideas on how to do that? I googled but not much luck. Quote
coldfusion244 Posted January 21, 2005 Posted January 21, 2005 To get the characters from whichever encoding type you are using, you could do something like... [CS] int i = 0; for (i = 0;i<256;i++) { texbox1.text += (char)i; }[/CS] I'm not entirely sure what you want here... Did you want the interface or the code? Quote -Sean
eramgarden Posted January 21, 2005 Author Posted January 21, 2005 The interface How do I create that "Symbol"'s box? Do I need to create a box, put ASCII characers in it, have an "insert" button and do the code you have to get the selections?? If so, too much work! I thought maybe there's a piece of code for it I could just insert into my code... Quote
coldfusion244 Posted January 21, 2005 Posted January 21, 2005 I guess you could use a panel, scrollbar and then a collection of labels to make the interface... then to generate the characters you could use my code... But to make it look identical, you're going to have to put more work in it that that... Quote -Sean
georgepatotk Posted January 22, 2005 Posted January 22, 2005 go to Start Menu > Programs > Accessories > System Tools > Character Map just copy it's layout. Or I think there should be a way to call this object from Windows itself. take a look on this http://www.dmcontrols.com/CharMap.zip Quote George C.K. Low
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.