© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•3y ago•
1 reply
Puka

❔ c# wpf change background color of whitespace character

I've been at it for a few hours and i just cant seem to get it to work, i've tried keypress events and
<RichTextBox TextChanged="richBox_TextChanged"
<RichTextBox TextChanged="richBox_TextChanged"

but i can't seem to get the basic behaviour going.
i want to change the background of whitespace character whenever i type them inside the richtextbox, surely that's possible?
google doesnt seem to turn up any useful info either
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

WPF ContextMenu background color problems
C#CC# / help
2y ago
❔ C# WPF playing background music
C#CC# / help
4y ago
Changing RepeatButton Color in WPF C#
C#CC# / help
2y ago
Background color of .net
C#CC# / help
2y ago