in my form one listbox in which i am adding items at runtime
now i want to insert one new item (before or after the selected item)in a listbox and enter the data .
i tried by using
listbox1.items.insert(listbox1.index,listbox1.selecteditem.text)
but it is adding the same item i selected in the listbox
which i dont want
i want to add a new item in a listbox and enter the text in that item
hope my question is clear
thanks
now i want to insert one new item (before or after the selected item)in a listbox and enter the data .
i tried by using
listbox1.items.insert(listbox1.index,listbox1.selecteditem.text)
but it is adding the same item i selected in the listbox
which i dont want
i want to add a new item in a listbox and enter the text in that item
hope my question is clear
thanks