Quantcast
Viewing all articles
Browse latest Browse all 18858

Change ForeColor of a Row in a LIstBox if the row contains the word "Error" in it:

Hello,

I have a listbox and I write to it using multiple threads, continuously. At the time of writing I would like to check if the message contains the word "Error" and if so I would like to change the forecolor of that row alone.

I was able to do it if I had the whole messge to write, using the datatemplate and datatrigger. But in my case I do not know the complete message I am going to write. It is just the word "Error" in side the message that can help me.

Please let me know your suggestions.

Thanks,

Arun


Viewing all articles
Browse latest Browse all 18858

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>