Solved

NumericUpDown Set Value

Posted on 2009-04-06
2
722 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
2 Comments
 
LVL 6

Accepted Solution

by:
RPCIT earned 500 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

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

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 …
Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
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…

707 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now