I'm done with my program, i just have some little problem. The problem it's about coloring the items in ListBox. I don't know how to color some items in ListBox, but with same background color that they are showed in TextBox. So i have a screenshoots here thats gonna explain my little problem:
Let me explain:
On picture 1 There is item that i get from RandomItem Button.Color it's depend on quality of item. For this example, i choose some Gloves with Green Background Color. So when i press on Take it, item go to my Invetnory and stay there while i don't use it, drop it or sell it. But i have problem with the background color of item when i took it in Inventory. So you can see on picture 1 that item got Green Background Color, and when i put it in my Inventory, (you can see in picture 2) there is no background color in ListBox. So My question it's, How i need to fix this code, to be able to take Text and Background Color together from the TextBox to ListBox. For now it's just Text. Here is the code that i used for transfering the Text from TextBox to the ListBox without color:
If TextBox1.Text = "" Then MsgBox("There is no item that you can take.") Else TextBox1.Text = ListBox1.Items.Add(a) TextBox4.Text = ListBox1.Items.Count End If
reason: Pictures can't be loaded:
This post has been edited by modi123_1: 17 April 2012 - 08:21 AM
Reason for edit:: fixing title to be more descriptive..