i want to change the color of a selected items from a list box control how to do that in windows(Winforms)
Assuming you're working with WinForms:
Most controls will have a BackColor and BorderColor property. You could add the Color
objects to your listbox (the color name should be displayed as Color.ToString()
returns the name), then use listbox.SelectedItems[0]
to get the color and update the other controls' BackColor etc.