Hey, been having some trouble with a program I am currently trying to write.
This is what i have so far:
I have a Numericupdown counter.
I have a Listbox.
When the counter changes i add an item to the listbox.
This code works fine at the moment.Code:If HACCount.Value > 0 Then Orderbox.Items.Add("Hello" & (HACCount.Value)) end if
HACCount.value is the numericupdown counter.
So when I click up on the counter once the listbox will display:
Hello1
Then if i click it so its number 2 it will display:
Hello1
Hello2
Here is a screenshot it better explains it.
http://img209.imageshack.us/img209/2015/testgp2.jpg
What I'm trying to do is not add another item but edit the first item.
So when the numeric counter goes to 1 "Hello1" is displayed.
When the numeric counter does to 2 "Hello2" is displayed NOT "Hello1 Hello2"
Hope this makes sense. This is part of what i need for a POS terminal I'm creating at the moment. If there is an easier way to do this please let me know.
Thanks.




Reply With Quote