Can someone plz post code to remove the selected item in a listbox :)
And does anyone know of any Listbox tutorials, i havent used them much
:p
Thankz in Advance
Printable View
Can someone plz post code to remove the selected item in a listbox :)
And does anyone know of any Listbox tutorials, i havent used them much
:p
Thankz in Advance
dim i as integer
for i = list1.listcount-1 to 0 step -1
if list1.selected(i) = true then list1.removeitem i
next
Try this:
List1.RemoveItem List1.ListIndex
Enjoy!!!
apps_tech
Ty for your help :D
One more thing:
i've got a textbox on my form and i need once u click a button, that it search for the text thats in the textbox in a systreeview32 on a chat window.. to find that username..
can anyone help?
(chat window is on an external program)
example would be nice
thx once again in advance.
:P
You need to use API to get the contents of that list box..
Then you could just use a For Next loop to run though the list box.
Not a chance :(Quote:
Originally posted by ice_531
Ty for your help :D
One more thing:
i've got a textbox on my form and i need once u click a button, that it search for the text thats in the textbox in a systreeview32 on a chat window.. to find that username..
can anyone help?
(chat window is on an external program)
example would be nice
thx once again in advance.
:P
What you are asking for there is VERY, VERY complicated!!!
I know how to get the hWnd for the form that the treeview resides in, but getting the treeview's hWnd is a completely different story :(
No being funny, or having a go, but if you have to ask how to remove an item from a listbox then you will not be able to deal with the code that will highlight an item in a treeview in another application, it's VERY messy API :(
Anyways, if you still want to persist with the treeview thing, then your best bet is to private message Merrion...they are very handy with API :D
Woka
K. thx:)
Anyone have any treeview api tutorials or such?
not seen ne const. for it in api viewer n ****
so i dunno how to query it :(
search on VBF for "Treeview and subclass", you'll find many examples of how to use API and a treeview...
Woka