---
title: "Change the Textbox foreground color in wpf."  
description: "Change the Textbox foreground color in wpf."  
author: "Anonymous User"  
published: 2013-07-18  
updated: 2013-07-18  
canonical: https://www.mindstick.com/forum/1309/change-the-textbox-foreground-color-in-wpf  
category: "wpf"  
tags: ["wpf"]  
reading_time: 1 minute  

---

# Change the Textbox foreground color in wpf.

Hi [mindstick](https://yourviews.mindstick.com/view/84668/how-mindstick-is-used-for-marketing-purposes)!

How can I chanded the [textbox](https://www.mindstick.com/forum/12714/dynamic-textbox-in-gridview) foreground [color](https://www.mindstick.com/articles/77/how-to-split-form-background-color-in-c-sharp) in [wpf](https://www.mindstick.com/forum/304/wpf) winforms?

thanks in [advance](https://www.mindstick.com/blog/33258/jee-mains-and-jee-advance-exams)

## Replies

### Reply by shreesh chandra shukla

Solution!

You can try this code for change the foreground color of a textbox in wpf: -

txtBox.Foreground= new SolidColorBrush(Colors.Yellow);


---

Original Source: https://www.mindstick.com/forum/1309/change-the-textbox-foreground-color-in-wpf

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
