Valhalla Legends Forums Archive | Battle.net Bot Development | need help with code

AuthorMessageTime
TeEhEiMaN
ok, Say i have a list box with 10 Items in it. And if I Select a item, How would i get the item selected List count Number and send the number to a text box.

I tryed Form1.count.text = Form1.List1.ListIndex but I get a Invalid Qualifyer, Not sure what to do plz help.


Thx

VB 6
July 21, 2003, 4:03 AM
Stealth
listview.SelectedItem.property

in other words:

txtSelectedItemIndex.Text = lstMyListview.SelectedItem.Index
July 21, 2003, 7:26 AM
TeEhEiMaN
ok i did what u said this is what i came out with

count.Text = List1.SelectedItem.Index

But I get Invalid Qualifyer... dont work :(
July 21, 2003, 9:22 AM
ThatOldFalcon
Is it a list box or a list view?
I always get confused with those....
July 21, 2003, 12:27 PM
TeEhEiMaN
Listview
July 21, 2003, 7:19 PM
Stealth
If it's a listbox, then it would be the .ListIndex property, I believe.
July 21, 2003, 9:30 PM
TeEhEiMaN
its a listview, and that still dont work.
July 21, 2003, 9:49 PM
UserLoser
You need help with reading, not code. The name of this forum is 'Battle.net Bot Development'.
July 21, 2003, 11:15 PM
TeEhEiMaN
nah i asked for help, not for u to give me shit
July 22, 2003, 12:03 AM
TeEhEiMaN
oh yea and this is for a bot.. so i do know how to read
July 22, 2003, 12:06 AM
Camel
So if I wanted to ask how to make a mind control device that would force everyone to obey my every command, I would post it here rather than the mind control forum (which there should be one of) just because I wanted to put it in a bot?
July 22, 2003, 1:11 AM
DrivE
+1 to Camel for FINALLY understanding where to post mind-control-device-related issues.

!~!HaZaRD!~!
July 22, 2003, 1:30 AM
TeEhEiMaN
........................... Well are u guys gonna help me or not?
July 22, 2003, 3:00 AM

Search