473,500 Members | 1,605 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

NumericUpDown set the Value property outside the bounds

3 New Member
Hi,

Is there any way to display a value in the NumericUpDown control that is bigger than Max or smaller than Min?

Especially when I am just creating the control, not when the user changes it !!!

As I can see there is a check happening whenever I am initializing the Value property. And if the value is outside the bounds - ArgumentOutOFRangeExeption is thrown. Is there any way to ignor this exaption or cancel it at all???

The idea in my project is - to show whatever value is stored in the database, allow user to change it and only when he presses 'ok' button , to check if the value is outside the range.

HELP PLEASE !!!!
Jun 8 '07 #1
4 1547
dip_developer
648 Recognized Expert Contributor
Hi,

Is there any way to display a value in the NumericUpDown control that is bigger than Max or smaller than Min?

Especially when I am just creating the control, not when the user changes it !!!

As I can see there is a check happening whenever I am initializing the Value property. And if the value is outside the bounds - ArgumentOutOFRangeExeption is thrown. Is there any way to ignor this exaption or cancel it at all???

The idea in my project is - to show whatever value is stored in the database, allow user to change it and only when he presses 'ok' button , to check if the value is outside the range.

HELP PLEASE !!!!
you are showing value in the numeris updown??
then its not possible to show vaule greater than the maximum
what do you actually want...I didnt understand
.....
Jun 8 '07 #2
JuG
3 New Member
you are showing value in the numeris updown??
then its not possible to show vaule greater than the maximum
what do you actually want...I didnt understand
.....
I want to show the value in the NumericUpDown. And whant it to be outside the range.

NumericUpDown nud=new NumericUpDown();
nud.Min=10;
nud.Max=20;
nud.Value=30; //Any way to do that?????????

I know it is not possible in a given control design, but maybe there is some workaround?

It is not my idea to do so, but the project meneger's :)
Jun 8 '07 #3
dip_developer
648 Recognized Expert Contributor
Hi,

Is there any way to display a value in the NumericUpDown control that is bigger than Max or smaller than Min?

Especially when I am just creating the control, not when the user changes it !!!

As I can see there is a check happening whenever I am initializing the Value property. And if the value is outside the bounds - ArgumentOutOFRangeExeption is thrown. Is there any way to ignor this exaption or cancel it at all???

The idea in my project is - to show whatever value is stored in the database, allow user to change it and only when he presses 'ok' button , to check if the value is outside the range.
HELP PLEASE !!!!

The idea in my project is - to show whatever value is stored in the database, allow user to change it and only when he presses 'ok' button , to check if the value is outside the range.
plenty of ways to do that ....why are u using numericupdown???
Jun 8 '07 #4
JuG
3 New Member
plenty of ways to do that ....why are u using numericupdown???
The main question is this:
I want to show the value in the NumericUpDown. And whant it to be outside the range.

NumericUpDown nud=new NumericUpDown();
nud.Min=10;
nud.Max=20;
nud.Value=30; //Any way to do that????????? Now it is throwing ArgumentOutOfRangeExaption. Is it possible to cancel this exaption or ignore it? I need to allow the value to be outside the range.

I know it is not possible in a given control design, but maybe there is some workaround?

It is not my idea to do so, but the project meneger's :)

The rest of the original question is just an explanation for the readers and does not require an answer.
Jun 8 '07 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

21
9820
by: | last post by:
Hi, I am setting the NumericUpDown .Value property and the ValueChanged event is NOT being fired. Does this ONLY get fired when I change it on the UI and not programatically? Thanks
21
2380
by: | last post by:
Hi, I am setting the NumericUpDown .Value property and the ValueChanged event is NOT being fired. Does this ONLY get fired when I change it on the UI and not programatically? Thanks
21
447
by: | last post by:
Hi, I am setting the NumericUpDown .Value property and the ValueChanged event is NOT being fired. Does this ONLY get fired when I change it on the UI and not programatically? Thanks
3
30078
by: abc my vclass | last post by:
My win-form have many numericupdown controls to applied. But numericupdown control don't like textbox, text box control can automatic selected text when got focus. Is there any method can let me...
0
7136
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7232
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
6906
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7397
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5490
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
4923
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
3110
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3106
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
316
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.