Subject: can I change the forecolor and backcolor of text
Posted By: saffower Post Date: 9/30/2004 8:52:23 AM
after i create a text editor with a pop up menu enable.

in the popup menu i have to choice black on white and white on black..

i can check the textbox forecolor and backcolor by using the following code

textbox.forecolor =color.black
textbox.backcolor=color.white

i just wonder can i just change the forecolor and backcolor of selectedText, not the entire textbox


any idea i will greatly appreciate

Hui Deng
Reply By: Mosquito109 Reply Date: 10/7/2004 10:23:23 PM
I haven't tried this but this may work:

textbox1.text = color.white
textbox1.text = color.black



Reply By: Santhi Reply Date: 10/11/2004 10:42:08 AM
No you cant change the forecolor and backcolor of the selectedText.
and neither this will work
textbox1.text = color.white
textbox1.text = color.black



Reply By: katsarosj Reply Date: 10/11/2004 11:18:40 AM
Is this a windows application and, if so, is this a richtextbox you are using?

J
Reply By: saffower Reply Date: 10/11/2004 2:38:34 PM
yup.. it is a simple window application... and just use textbox with multiline enabled.



Hui Deng

Go to topic 20529

Return to index page 747
Return to index page 746
Return to index page 745
Return to index page 744
Return to index page 743
Return to index page 742
Return to index page 741
Return to index page 740
Return to index page 739
Return to index page 738