• Welcome to Valhalla Legends Archive.
 

need help with code

Started by TeEhEiMaN, July 20, 2003, 11:03 PM

Previous topic - Next topic

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

Stealth

#1
listview.SelectedItem.property

in other words:

txtSelectedItemIndex.Text = lstMyListview.SelectedItem.Index
- Stealth
Author of StealthBot

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 :(

ThatOldFalcon

Is it a list box or a list view?
I always get confused with those....

TeEhEiMaN


Stealth

If it's a listbox, then it would be the .ListIndex property, I believe.
- Stealth
Author of StealthBot

TeEhEiMaN

its a listview, and that still dont work.

UserLoser

You need help with reading, not code.  The name of this forum is 'Battle.net Bot Development'.

TeEhEiMaN

nah i asked for help, not for u to give me shit

TeEhEiMaN

oh yea and this is for a bot.. so i do know how to read

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?

Hazard

+1 to Camel for FINALLY understanding where to post mind-control-device-related issues.

!~!HaZaRD!~!

"Courage is being scared to death - but saddling up anyway." --John Wayne

TeEhEiMaN

........................... Well are u guys gonna help me or not?