Jump to content
Xtreme .Net Talk

RudeYute

Members
  • Posts

    4
  • Joined

  • Last visited

RudeYute's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. Hi mhsueh001, 1 - Correct, but I have buttons which Add these items into the listbox. Ie, I press one button and "up" is inserted, another button then "normal" is inserted". As third button adds "down". 2 - The list box will contain them 3 texts upto 20 times in random orders (depending on users clicks). I want the final button click to go through the list items one by one and do certain things depending on each item.
  2. Hmm, now I'm stuck for ideas of what to do. I don't want to use any of the above two methods mentioned by you, as I clearly am not that advanced with vb.:( Thanks
  3. Hi, Thanks for your reply. If the problem is the "up" word, then If I change it to something like "increase" it should sort the problem right? Would the way I first done it work, if I was to change the text? I don't want to get too advanced on it (hence why I'm sticking to what I know), as the code has to be shown for the work. Thanks
  4. Hi, I have created a listbox, with a few buttons inserting items into the listbox. Items Inserted are: "Up", "Down" and "Normal" Now, what I am trying to do is, have another button, when clicked, it scrolls through the listbox, and if it's "Up" in the list, then does something, if "Down" then something Else, and if "Normal" then something else still. The code I think which should work is: While lbList.Items.Item("Up") Do PictureBox.Left += 1 Loop End While The code seems perfect, but when I run the program, I get the following error: "Cast from string "Up" to type 'Integer' is not valid." I don't get why that error comes up, as I haven't declared "Up" as there's no need to. Can anyone help me with this please? I have also tried If statements in there too. Thanks Ps, sorry if this is in the wrong forum - I'm new to VB and so werent too which forum to put it in, but seems relevent.
×
×
  • Create New...