Click here to Skip to main content
15,887,262 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
I am saving stock details including product ID,product name,price and quantity into a text file and then displaying this information in a list box, each row consists of the details I've listed above. Now my aim is to highlight in red the quantity of the product only if the value is below 5, so the user knows when they need to re-stock, the problem is I've no idea on how to do this. Does anyone got any suggestions? Thank you for your time.

What I have tried:

I have tried looking online for other solutions but it does not seem to match my requirements.
Posted
Updated 16-Feb-18 9:53am

1 solution

You need to build up your own customized Listbox which has this Behaviour.
One possible sample could be this :
Owner drawn ListBox[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900