listBox help for a beginner

  • Thread starter Thread starter Jeff
  • Start date Start date
J

Jeff

Thanks in advance from an absolute beginner.

I have a listbox with many different items listed. I want the user to
select one item and then sort that selection into several different
labelboxes, i.e. the first three positions in lblBoxOne, positions 4-10
in lblBoxTwo, 11-20 in lblBoxThree and so on. I have been looking for
a while now and the answer is very close but I just can't put my finger
on it.
 
Jeff said:
Thanks in advance from an absolute beginner.

I have a listbox with many different items listed. I want the user to
select one item and then sort that selection into several different
labelboxes, i.e. the first three positions in lblBoxOne, positions 4-10
in lblBoxTwo, 11-20 in lblBoxThree and so on. I have been looking for
a while now and the answer is very close but I just can't put my finger
on it.

Look in the help for the:

String.SubString method, which will allow you to break up the selected
string from your listbox into the desired substrings. The substrings can
then be assigned to the Text properties of your labels.
 

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