Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

NumericUpDown Set Value

Posted on 2009-04-06
2
Medium Priority
?
737 Views
Last Modified: 2013-12-26
I have a couple of numeric up and down buttons on a form.  One has 3 decimal points and in my class it is declared as a double.
I am trying to set the value,  43545.121, into the control, but I get an error saying I need a maximum, min etc.
I am using the following to put the value in the number portion of the control.
Me.NumValveTiming.Value = cEng.ValveTiming
What is the correct way to set the value of this control?
0
Comment
Question by:Sheritlw
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 6

Accepted Solution

by:
RPCIT earned 2000 total points
ID: 24082699
On the control properties, there is an option for Max and Min, increment and decimal places.  

I would set your min to something like -99999999999 and max to 999999999999 .. or something like that. Decimal places to 3 or greater, and increment to .001
0
 

Author Closing Comment

by:Sheritlw
ID: 31567293
Exactly what I needed.  
Thank you
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
Suggested Courses

721 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question