ArgumentOutOfRangeException was unhandled

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • xXzx
    New Member
    • Aug 2014
    • 1

    ArgumentOutOfRangeException was unhandled

    Hi everybody, I have a trouble with ArgumentOutOfRa ngeException. When I type a French word in an AutoCompleteCom boBox then submit it to add new record to database, the combo box throw an exception:
    ArgumentOutOfRa ngeException was unhandled:
    InvalidArgument =Value of '0' is not valid for 'index'.
    Parameter name: index

    This exception appears in line:
    addr = cboAddr.Text;

    And here's the code of AutoCompleteCom boBox class:
Working...