Quantcast
Channel: Xojo Programming Forum - Latest topics
Viewing all articles
Browse latest Browse all 3816

Color in my ListBox

$
0
0

Hi group, another little problem. I have a listBox, on a cell I have the color I need stored as text in the form &h00FF0000. I wanted to read it in the PaintCellBackGround to give the color to the line, and I wrote:

if column=2 Then
messagebox ListBoxTipologie.CellTextAt(row,column)
if ListBoxTipologie.CellTextAt(row,column)<>“” then
g.DrawingColor= color.FromString(ListBoxTipologie.CellTextAt(row,column)) ‘E’ il colore scritto
else
g.DrawingColor= &cFFFFFF 'WHITE
end if
g.FillRectangle(0, 0, g.Width, g.Height)
end if

but I get the error:

5 posts - 4 participants

Read full topic


Viewing all articles
Browse latest Browse all 3816

Trending Articles