Connecting Tech Pros Worldwide Forums | Help | Site Map

NumericUpDown instant event

Newbie
 
Join Date: Apr 2007
Posts: 1
#1: Apr 23 '07
Hi, I'm using a numericupdown to represent the number of items in a listbox. It's supposed to add more items to the listbox if i change the value of the numericupdown. I used to did this with a combobox with values up to 5, but now I need editable values. The thing is, it works if I type in text and then press enter. It also works if I push the numericupdown buttons, but this event isn't triggered instantly, it only shows the change after I press again. An example of what I mean is like this:
let's say it shows "3", it also shows 3 items in my listbox. I then enter like 5, press enter, it shows 5 items in my listbox. If I press the "up" button, it says 6, but still 5 items are in my listbox. If i then press up again, it says 7, and 6 items will be in my listbox, if i press up again, it says 8 and 7 will be in, etc etc... So the event is only triggered after i press it again. Any way I can solve this??

Reply