HI everyone,

I have the following listbox code..

listBox1.Items.AddRange(new object[] { "","Average:\t" + textbox1.text});

How can i change the font/bold/underline to some items i have in this listbox.

thanks.

It is not possible to have unique font styles on a per item basis with the ListBox.
If you need that kind of control then use a ListView instead. It is a little harder to use, but give greater flexibility on how each item is displayed.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.