> How to solve the same problem in a Datagrid ?
thks.
You can't in the DataGrid, but you can in FlexGrid and TrueGrid
----- Original Message -----
From: "Desmond" <desmond_otoole@h...>
To: "professional vb" <pro_vb@p...>
Sent: Tuesday, May 21, 2002 7:22 PM
Subject: [pro_vb] Re: Listbox - background color
> > I would like to assign a different text color and text
> b> ackground color to various line items of a listbox in VB.NET. I have
> not
> b> een able to get this to work - missing something.
>
> Cant see your problem. This works fine
>
> Private Sub Command1_Click()
> List1.AddItem "Desmond", 0
> List1.BackColor = vbRed
> List1.ForeColor = vbWhite
> List1.Font.Name = "Impact"
> List1.Font.Size = 20
> List1.Font.Italic = True
> End Sub
> ---
> Change your mail options at http://p2p.wrox.com/manager.asp or
> to unsubscribe send a blank email to