Solved

NumericUpDown Set Value

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

Technology Partners: 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

Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
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…

737 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