VB-APP: Problem on numericupdown control

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • nev
    Contributor
    • Oct 2007
    • 251

    VB-APP: Problem on numericupdown control

    Nud has no textchanged event. Although nud only accepts numbers, it accepts blank as well. This is the problem I'm having. If it only has a textchanged event, I would have done something like this

    ontextchanged.. .

    if nud.text = "" then
    nud.value = 0
    end if

    Is there a solution to this?
  • nev
    Contributor
    • Oct 2007
    • 251

    #2
    I want to handle blank entry to numericupdown. It seems that if the numericupdown .value is zero, then I select the number then delete it, the nud retains the value zero. the problem is the display is blank.

    You can simulate this by creating a form and place a nud control. Run the app then delete the value from the nud. It is blank, but it really is the last number it is. I tried to refresh the nud but nothing happens.

    Comment

    • nev
      Contributor
      • Oct 2007
      • 251

      #3
      I would like to disable users from blanking the nud.

      Comment

      Working...