Comment changer la couleur du texte d'une zone de texte ?

cysod1879 Posted messages 129 Status Member -  
cysod1879 Posted messages 129 Status Member -
```plaintext
Bonjour, please I'm looking for the code to change the text color in a TextBox, I tried this code:
{
textbox1.ForeColor=Color.Red;
}
But it changes all the text written! I only want to change what I am currently writing...?? What should I do
```

2 answers

  1. khichpich Posted messages 34 Registration date   Status Member Last intervention  
     
    tu dois utiliser la bibliothèque
     Using System.Drawing;
    0
  2. cysod1879 Posted messages 129 Status Member 1
     
    Thank you for your response :)
    0