Hello im working on a program that displays a gui with all the keyboard keys and a rich text box in C# windoes forms,
the user is supposed to input a text to the rich text box and then press with the mouse (for exmple) the A button
and all the a the a chars will be in green color,but i dont know how can i color those specific car charcters.
any help would be more than appreciated!
6 Replies - 835 Views - Last Post: 18 July 2012 - 06:04 PM
Replies To: How To Color Specific Characters In Rich Text Box?
#2
Re: How To Color Specific Characters In Rich Text Box?
Posted 18 July 2012 - 05:07 PM
Show us your code and tell us what you have tried.
#3
Re: How To Color Specific Characters In Rich Text Box?
Posted 18 July 2012 - 05:22 PM
do you want me to upload the application it or just paste the lines of codes?
#4
Re: How To Color Specific Characters In Rich Text Box?
Posted 18 July 2012 - 05:26 PM
Just the code, post your code like so:
#5
Re: How To Color Specific Characters In Rich Text Box?
Posted 18 July 2012 - 05:33 PM
//button A
private void button11_Click(object sender, EventArgs e)
{
Color a=new Color
}
my problem is i don't know how to continue from here because i cant paint only char charters
#6
Re: How To Color Specific Characters In Rich Text Box?
Posted 18 July 2012 - 05:47 PM
I think it's pretty obvious that you've not even read the documentation for the RichTextBox.
See here if you get any ideas: http://msdn.microsof...rms.richtextbox
See here if you get any ideas: http://msdn.microsof...rms.richtextbox
#7
Re: How To Color Specific Characters In Rich Text Box?
Posted 18 July 2012 - 06:04 PM
ok thanks i think i got it and il post if i still have a problam
Page 1 of 1
|
|

New Topic/Question
Reply



MultiQuote







|