Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. NumericUpDown Control Question

NumericUpDown Control Question

Scheduled Pinned Locked Moved Visual Basic
questioncsharphelp
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B Offline
    B Offline
    bnjneer
    wrote on last edited by
    #1

    In VB.NET, there is the numericupdown control that is great (for validating input, i.e. max, min, number of decimal places), however, I am working with very large numbers and it makes no sense to have the spinner buttons visible, as there is no rational incrementing value. Is it possible to shut the spinner buttons off, so that they do not show up? If not, would it be easy to write a custom control to have the same functionality as the numericupdown control (properties of max, min, number of decimal places), but not have the buttons visible? Does anyone have a custom control available they would like to share? Seems like Microsoft would have created a control like this. Any help you can give would be greatly appreciated.

    A 1 Reply Last reply
    0
    • B bnjneer

      In VB.NET, there is the numericupdown control that is great (for validating input, i.e. max, min, number of decimal places), however, I am working with very large numbers and it makes no sense to have the spinner buttons visible, as there is no rational incrementing value. Is it possible to shut the spinner buttons off, so that they do not show up? If not, would it be easy to write a custom control to have the same functionality as the numericupdown control (properties of max, min, number of decimal places), but not have the buttons visible? Does anyone have a custom control available they would like to share? Seems like Microsoft would have created a control like this. Any help you can give would be greatly appreciated.

      A Offline
      A Offline
      Anonymous
      wrote on last edited by
      #2

      It seems you are basically just validating the input so why bother with a custom control? You could just use a validator and a text box?

      B 1 Reply Last reply
      0
      • A Anonymous

        It seems you are basically just validating the input so why bother with a custom control? You could just use a validator and a text box?

        B Offline
        B Offline
        bnjneer
        wrote on last edited by
        #3

        I understand what you are saying, but it would be much "cleaner" to me if there was a standard control just like the numericupdown, but without the spinner. Why did they bother creating the numericupdown (I am being sarcastic)? It could have just as easily been a text box where someone had to write the code to validate it? Why isn't there a control just like the NumericUpDown, but without the spinner? That is all I am asking for. Seems it would have been so easy to make the Spinner a property (visible or not visible)! Oh well. Thanks

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups