Solved

NumericUpDown Set Value

Posted on 2009-04-06
2
727 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
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 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…

679 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