listbox question

  • Thread starter Thread starter M K
  • Start date Start date
M

M K

I have tried numerous ways and I know its something simple I am missing

i have 2 listboxes one has data and the other numbers. The numbers refer to
the Identity in the database. I am trying to get the value from the number
one at the same index that the data one has selected

data number
test 1

stuff 15 // stuff is selected but i need to get the
value on the same index as stuff which in this case is 15

more 25

Thanks for any help in advance...

Mark
 
after another 100 tries.. i got it.. lol

int rc = Convert.ToInt16(lb2.Items[lb1.SelectedIndex]);

i kept trying to convert lb1 .. .
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top