I’m using VS2022 and have a form built that has a Listbox and TextBox.
The ListBox is used store user entered expressions (RegEx expressions) and I want the font color to change of the selected Item in the list box when compared against the value in the TextBox.
I’ve successfully used a For Each.. to get into the items of the list box and and compare the items against the test string using RegEx.Match. I’m to the point where I want to change the font color of the selected item or some other visual indicator when I’m inside my True statement.
I’ve been researching this most of the day and alot of the examples I found use the DrawEvent of the ListBox but I don’t see how it will work because the object is already drawn and populated.
Does anyone have any guidance on how to change the color to red or bold?