listbox calculate 2 columns


Is it possible to have a column i a listbox, that calculate the sum of 2 other columns?

Best regards

certainily… just put the required code into the Textpaint event of the 3rd column, and invalidate that column when you want it updated

if column=2 then 
g.drawstring str(val(cell(row,0))+val(cell(row,1)), xx, yy
return true
end if

code for illustration purposes only. up to you to figure out what xx and yy should be