Combo box problem help

i have a combo box and when i select an item from it and use the text property to determine what event i am selecting to do from the combo box
i do this twice and two tabs and on the first one it works fine but on the second one it gives me this error: "system.indexoutofrangeerror". i know this error cant be too big of a problem but i cant figure out why the index would be out of range. is it something over selecting the event? another error i have is when i go to click a button i have to edit a event it says the same thing but i think this error is most likely a selection error. I only have some code for the first error with selecting the event:

'the line below cases the error
Select Case ComboCommands2.Text
Case Is = "Execute Program"
'add other event items here to prepare for the event or to do it
'add other cases here
End Select

Comments

  • : i have a combo box and when i select an item from it and use the
    : text property to determine what event i am selecting to do from the
    : combo box
    : i do this twice and two tabs and on the first one it works fine but
    : on the second one it gives me this error:
    : "index out of range error". i know this error cant be too big of
    : a problem but i cant figure out why the index would be out of range.
    : is it something over selecting the event? another error i have is
    : when i go to click a button i have to edit a event it says the same
    : thing but i think this error is most likely a selection error. I
    : only have some code for the first error with selecting the event:
    :
    : 'the line below cases the error
    : Select Case ComboCommands2.Text
    : Case Is = "Execute Program"
    : 'add other event items here to prepare for the event or to do it
    : 'add other cases here
    : End Select
    :
    :
    thanks for any help again
    jeffman the planner
  • i dont know what the problem is but i have tryed everthing i can think of. this seems like a simple error but i cannot think of what is wrong does anyone know what would cause a problem like this because i dont know how this problem was caused.

    the text i select from the combo box is correct too and the index is not equal to -1 or greater then the list count -1.


    : : i have a combo box and when i select an item from it and use the
    : : text property to determine what event i am selecting to do from the
    : : combo box
    : : i do this twice and two tabs and on the first one it works fine but
    : : on the second one it gives me this error:
    : : "index out of range error". i know this error cant be too big of
    : : a problem but i cant figure out why the index would be out of range.
    : : is it something over selecting the event? another error i have is
    : : when i go to click a button i have to edit a event it says the same
    : : thing but i think this error is most likely a selection error. I
    : : only have some code for the first error with selecting the event:
    : :
    : : 'the line below cases the error
    : : Select Case ComboCommands2.Text
    : : Case Is = "Execute Program"
    : : 'add other event items here to prepare for the event or to do it
    : : 'add other cases here
    : : End Select
    : :
    : :
    : thanks for any help again
    : jeffman the planner
  • i all ready figured it out it was a compiler problem i just recompiled my project and chnaged some simple code and it worked. i changed some other code for oher listboxes code not listed here to using them directly because i was doing me.listbox1.items.count or something similar instead of listbox1.items.count and then i recompiled it and it worked.

    : i dont know what the problem is but i have tryed everthing i can
    : think of. this seems like a simple error but i cannot think of what
    : is wrong does anyone know what would cause a problem like this
    : because i dont know how this problem was caused.
    :
    : the text i select from the combo box is correct too and the index is
    : not equal to -1 or greater then the list count -1.
    :
    :
    : : : i have a combo box and when i select an item from it and use the
    : : : text property to determine what event i am selecting to do from the
    : : : combo box
    : : : i do this twice and two tabs and on the first one it works fine but
    : : : on the second one it gives me this error:
    : : : "index out of range error". i know this error cant be too big of
    : : : a problem but i cant figure out why the index would be out of range.
    : : : is it something over selecting the event? another error i have is
    : : : when i go to click a button i have to edit a event it says the same
    : : : thing but i think this error is most likely a selection error. I
    : : : only have some code for the first error with selecting the event:
    : : :
    : : : 'the line below cases the error
    : : : Select Case ComboCommands2.Text
    : : : Case Is = "Execute Program"
    : : : 'add other event items here to prepare for the event or to do it
    : : : 'add other cases here
    : : : End Select
    : : :
    : : :
    : : thanks for any help again
    : : jeffman the planner
    :
Sign In or Register to comment.

Howdy, Stranger!

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

Categories

In this Discussion