I have a multicolumn listbox. I would like the user to be able to change the selected value with an input box.
This is the code which I have written so far - with an example value
When the user double clicks on an item, the code retrieves the index number.
For a test, I set the code to rewrite the selected item with "12.12.2012".
Here is the problem: The code loops many times until it stops. Why?
My second question is about the column. How do I change the third item only?
With the current code, the value is put into the first column.
The listbox - lstOrders
Thanks for your help!
This is the code which I have written so far - with an example value
Code:
Dim intListitem As Integer
intListitem = lstOrders.ListIndex
Me.lstOrders.List(intListitem) = "12.12.2012"
When the user double clicks on an item, the code retrieves the index number.
For a test, I set the code to rewrite the selected item with "12.12.2012".
Here is the problem: The code loops many times until it stops. Why?
My second question is about the column. How do I change the third item only?
With the current code, the value is put into the first column.
The listbox - lstOrders
Code:
¦-----------------¦-----------------¦-----------------¦
¦ ¦ ¦ ¦
¦ ¦ ¦ ¦
¦ 0 ¦ 1 ¦ 2 ¦
¦ ¦ ¦ ¦
¦ ¦ ¦ ¦
¦-----------------¦-----------------¦-----------------¦
¦ ¦ ¦ ¦
¦ ¦ ¦ ¦
¦ ID ¦ Date ¦ Customer ¦
¦ ¦ ¦ ¦
¦ ¦ ¦ ¦
¦-----------------¦-----------------¦-----------------¦
Thanks for your help!