Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

i need help on list box...

mOskimOski Member Posts: 44

I'm making a program that has 2 list boxes and 4 text boxes.In the program if you click an item on one of the list box the first text box's text is equal to a text. Now what I want is that The next time I click on an item on one of the 2 list boxes, the next item will be added to the second text box, then the next click the item will be added to the third text box and so on but everytime I click on an item its always added on the first text box.

I tried everything I know and I still can't do it...

hope someone here can help.....

Comments

  • Termc1224Termc1224 Member Posts: 84
    :
    : I'm making a program that has 2 list boxes and 4 text boxes.In the
    : program if you click an item on one of the list box the first text
    : box's text is equal to a text. Now what I want is that The next time
    : I click on an item on one of the 2 list boxes, the next item will be
    : added to the second text box, then the next click the item will be
    : added to the third text box and so on but everytime I click on an
    : item its always added on the first text box.
    :
    : I tried everything I know and I still can't do it...
    :
    : hope someone here can help.....

    Place your code so we can see the probs, i think the prob is with the click event of listbox.
    you probably need a conditional statement like for ex in the list1 that click event
  • Termc1224Termc1224 Member Posts: 84
    :
    : I'm making a program that has 2 list boxes and 4 text boxes.In the
    : program if you click an item on one of the list box the first text
    : box's text is equal to a text. Now what I want is that The next time
    : I click on an item on one of the 2 list boxes, the next item will be
    : added to the second text box, then the next click the item will be
    : added to the third text box and so on but everytime I click on an
    : item its always added on the first text box.
    :
    : I tried everything I know and I still can't do it...
    :
    : hope someone here can help.....

    Place your code so we can see the probs, i think the prob is with the click event of listbox.
    you probably need a conditional statement like for ex in the list1 that click event

    if text1.text = "" then
    text2.text = list1.text
    else
    text1.text = list1.text
    end if

    same with the list2 but the textboxes are different.

    hope this would help...
  • mOskimOski Member Posts: 44
    : :
    : : I'm making a program that has 2 list boxes and 4 text boxes.In the
    : : program if you click an item on one of the list box the first text
    : : box's text is equal to a text. Now what I want is that The next time
    : : I click on an item on one of the 2 list boxes, the next item will be
    : : added to the second text box, then the next click the item will be
    : : added to the third text box and so on but everytime I click on an
    : : item its always added on the first text box.
    : :
    : : I tried everything I know and I still can't do it...
    : :
    : : hope someone here can help.....
    :
    : Place your code so we can see the probs, i think the prob is with
    : the click event of listbox.


    THANK YOU SO MUCH!!! i lost hope on the listbox.... good thing you answered... thank you sOoOooo much!!! THANK YOU!!!! (^_^)

    THANK YOU!!!! hehehe!!!
    : you probably need a conditional statement like for ex in the list1
    : that click event
    :
    : if text1.text = "" then
    : text2.text = list1.text
    : else
    : text1.text = list1.text
    : end if
    :
    : same with the list2 but the textboxes are different.
    :
    : hope this would help...

  • mOskimOski Member Posts: 44
    : : :
    : : : I'm making a program that has 2 list boxes and 4 text boxes.In the
    : : : program if you click an item on one of the list box the first text
    : : : box's text is equal to a text. Now what I want is that The next time
    : : : I click on an item on one of the 2 list boxes, the next item will be
    : : : added to the second text box, then the next click the item will be
    : : : added to the third text box and so on but everytime I click on an
    : : : item its always added on the first text box.
    : : :
    : : : I tried everything I know and I still can't do it...
    : : :
    : : : hope someone here can help.....
    : :
    : : Place your code so we can see the probs, i think the prob is with
    : : the click event of listbox.
    :
    :
    : THANK YOU SO MUCH!!! i lost hope on the listbox.... good thing you
    : answered... thank you sOoOooo much!!! THANK YOU!!!! (^_^)
    :
    : THANK YOU!!!! hehehe!!!
    : : you probably need a conditional statement like for ex in the list1
    : : that click event
    : :
    : : if text1.text = "" then
    : : text2.text = list1.text
    : : else
    : : text1.text = list1.text
    : : end if
    : :
    : : same with the list2 but the textboxes are different.
    : :
    : : hope this would help...
    :
    :


    I tried the code out and it seems that it only works for 2 textboxes... I'm using 10 or more textboxes and I don't know how to do that.... I think For loop is needed to make it work but sad to say, I'm not good with for loops, I don't know how to use them that much.... (T_T)


Sign In or Register to comment.