6 Replies - 1481 Views - Last Post: 18 July 2012 - 06:04 PM Rate Topic: -----

#1 David404  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 4
  • Joined: 18-July 12

How To Color Specific Characters In Rich Text Box?

Posted 18 July 2012 - 04:54 PM

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!
Is This A Good Question/Topic? 0
  • +

Replies To: How To Color Specific Characters In Rich Text Box?

#2 Skydiver  Icon User is offline

  • Code herder
  • member icon

Reputation: 3160
  • View blog
  • Posts: 9,529
  • Joined: 05-May 12

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.
Was This Post Helpful? 0
  • +
  • -

#3 David404  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 4
  • Joined: 18-July 12

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?
Was This Post Helpful? 0
  • +
  • -

#4 GunnerInc  Icon User is offline

  • "Hurry up and wait"
  • member icon




Reputation: 856
  • View blog
  • Posts: 2,246
  • Joined: 28-March 11

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:
Posted Image
Was This Post Helpful? 0
  • +
  • -

#5 David404  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 4
  • Joined: 18-July 12

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
Was This Post Helpful? 0
  • +
  • -

#6 Skydiver  Icon User is offline

  • Code herder
  • member icon

Reputation: 3160
  • View blog
  • Posts: 9,529
  • Joined: 05-May 12

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
Was This Post Helpful? 0
  • +
  • -

#7 David404  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 4
  • Joined: 18-July 12

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
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1