Valhalla Legends Archive

Programming => Battle.net Bot Development => Topic started by: TeEhEiMaN on July 20, 2003, 11:03 PM

Title: need help with code
Post by: TeEhEiMaN on July 20, 2003, 11:03 PM
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
Title: Re:need help with code
Post by: Stealth on July 21, 2003, 02:26 AM
listview.SelectedItem.property

in other words:

txtSelectedItemIndex.Text = lstMyListview.SelectedItem.Index
Title: Re:need help with code
Post by: TeEhEiMaN on July 21, 2003, 04:22 AM
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 :(
Title: Re:need help with code
Post by: ThatOldFalcon on July 21, 2003, 07:27 AM
Is it a list box or a list view?
I always get confused with those....
Title: Re:need help with code
Post by: TeEhEiMaN on July 21, 2003, 02:19 PM
Listview
Title: Re:need help with code
Post by: Stealth on July 21, 2003, 04:30 PM
If it's a listbox, then it would be the .ListIndex property, I believe.
Title: Re:need help with code
Post by: TeEhEiMaN on July 21, 2003, 04:49 PM
its a listview, and that still dont work.
Title: Re:need help with code
Post by: UserLoser on July 21, 2003, 06:15 PM
You need help with reading, not code.  The name of this forum is 'Battle.net Bot Development'.
Title: Re:need help with code
Post by: TeEhEiMaN on July 21, 2003, 07:03 PM
nah i asked for help, not for u to give me shit
Title: Re:need help with code
Post by: TeEhEiMaN on July 21, 2003, 07:06 PM
oh yea and this is for a bot.. so i do know how to read
Title: Re:need help with code
Post by: Camel on July 21, 2003, 08:11 PM
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?
Title: Re:need help with code
Post by: Hazard on July 21, 2003, 08:30 PM
+1 to Camel for FINALLY understanding where to post mind-control-device-related issues.

!~!HaZaRD!~!
Title: Re:need help with code
Post by: TeEhEiMaN on July 21, 2003, 10:00 PM
........................... Well are u guys gonna help me or not?