Results 1 to 3 of 3

Thread: NumericUpDown

  1. #1

    Thread Starter
    New Member
    Join Date
    Jan 2006
    Posts
    4

    NumericUpDown

    I created a form for me to do pressure conversions. For example, Atmosphere to psi, inches Hg to inches water, etc....... I am using a NumericUpDown box for the user to input the numeric value to be converted. I noticed when using a larger number such as 2300 to convert psi to bar, for example, it would change the number I entered (2300) in the NumericUpDown box to 100.00. This happens when I use a number larger than 100 in any of the conversions I try. It seems as though the largest number I can put in the NumericUpDown is 100. How can I make it to where I can input any number no matter how large? Thanks!!

  2. #2
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: NumericUpDown

    You ALWAYS need to have a look at what properties an object has, especially when you're creating it in the designer. The NumericUpDown has a Maximum property that is 100 by default, but you can set it to whatever you like.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  3. #3

    Thread Starter
    New Member
    Join Date
    Jan 2006
    Posts
    4

    Re: NumericUpDown

    Thanks JMC. I overlooked the mamimum property when looking in the properties window. Thanks.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width