listbox.maximum/adding text to the end of listbox items/listbox1.itemselected....
listbox1.selecteditem.maximum:
once listbox1.selecteditem hit the button of the listbox i want it to go back up to the top/1st item
adding text to the end of listbox items:
want this to my textbox1.text to get added to all of my items in my listbox
listbox1.selecteditem = progressbar status
cant explain this^
Re: listbox.maximum/adding text to the end of listbox items/listbox1.itemselected....
When you click the button do something like:
vb Code:
dim value as Object = me.listbox1.selectedvalue 'you can cast it later or put Integer/String/Etc if you know what the type is.
me.listbox1.selectedindex = 0
If you need to add contents of a textbox to a lisbox just do:
vb Code:
me.listbox1.items.add(me.textbox1.text)
Justin
Re: listbox.maximum/adding text to the end of listbox items/listbox1.itemselected....
If you are adding them like:
vb Code:
me.listbox1.items.add(...
The selectedValue property will be empty.
Just do:
vb Code:
Dim value as object = me.listbox1.selecteditem.tostring
Justin
Re: listbox.maximum/adding text to the end of listbox items/listbox1.itemselected....
Quote:
Originally Posted by
MonkOFox
When you click the button do something like:
vb Code:
dim value as Object = me.listbox1.selectedvalue 'you can cast it later or put Integer/String/Etc if you know what the type is.
me.listbox1.selectedindex = 0
If you need to add contents of a textbox to a lisbox just do:
vb Code:
me.listbox1.items.add(me.textbox1.text)
Justin
1st.i need it to be a privatesub i dont know what the good id for that
2nd.i loaded text box1 with a large list i cant add text to every single line :sick: