|
-
Jun 10th, 2003, 10:44 PM
#1
Thread Starter
Frenzied Member
simple listbox question
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

Thankz in Advance
:::`DISCLAIMER`:::
Do NOT take anything i have posted to be truthful in any way, shape or form.
Thank You!
--------------------------------
"Never heard about "hiking" poles. I usualy just grab a stick from the nature, and use that as a pole." - NoteMe
"Finaly I can look as gay as I want..." - NoteMe
Languages: VB6, BASIC, Java, C#. C++
-
Jun 10th, 2003, 10:56 PM
#2
The picture isn't missing
dim i as integer
for i = list1.listcount-1 to 0 step -1
if list1.selected(i) = true then list1.removeitem i
next
Remember, if someone's post was not helpful, you can always rate their post negatively  .
-
Jun 10th, 2003, 10:56 PM
#3
Hyperactive Member
Try this:
List1.RemoveItem List1.ListIndex
Enjoy!!!
apps_tech
-
Jun 10th, 2003, 11:01 PM
#4
Thread Starter
Frenzied Member
Ty for your help
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
:::`DISCLAIMER`:::
Do NOT take anything i have posted to be truthful in any way, shape or form.
Thank You!
--------------------------------
"Never heard about "hiking" poles. I usualy just grab a stick from the nature, and use that as a pole." - NoteMe
"Finaly I can look as gay as I want..." - NoteMe
Languages: VB6, BASIC, Java, C#. C++
-
Jun 11th, 2003, 03:32 AM
#5
Frenzied Member
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.
-
Jun 11th, 2003, 06:44 AM
#6
-
Jun 11th, 2003, 11:56 AM
#7
Thread Starter
Frenzied Member
K. thx
:::`DISCLAIMER`:::
Do NOT take anything i have posted to be truthful in any way, shape or form.
Thank You!
--------------------------------
"Never heard about "hiking" poles. I usualy just grab a stick from the nature, and use that as a pole." - NoteMe
"Finaly I can look as gay as I want..." - NoteMe
Languages: VB6, BASIC, Java, C#. C++
-
Jun 11th, 2003, 03:04 PM
#8
Thread Starter
Frenzied Member
Well..
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
:::`DISCLAIMER`:::
Do NOT take anything i have posted to be truthful in any way, shape or form.
Thank You!
--------------------------------
"Never heard about "hiking" poles. I usualy just grab a stick from the nature, and use that as a pole." - NoteMe
"Finaly I can look as gay as I want..." - NoteMe
Languages: VB6, BASIC, Java, C#. C++
-
Jun 11th, 2003, 04:01 PM
#9
search on VBF for "Treeview and subclass", you'll find many examples of how to use API and a treeview...
Woka
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|