Click here to Skip to main content
13,046,184 members (58,392 online)
Rate this:
Please Sign up or sign in to vote.
See more:
Is it possible to get the minimum value over different textboxes (the text is parsed to a double) in a winform? If so, how can we achieve this?
Posted 9-Oct-12 0:16am
Varun Sareen 9-Oct-12 6:52am
not a question. Have you not tried yourself? If not then first try and if you face problem then let us know :-)
Frans Jan 10-Oct-12 4:58am
Since I'm a beginner in C# I didn't know the options. I was just thinking to difficult, that I had to compare the value of the textboxes. Yes, I need to do this, but I didn't think of the Math.Min() method from below answer.

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

Parse the values (as you say) to Doubles, then use the Math.Min[^] method.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web02 | 2.8.170713.1 | Last Updated 9 Oct 2012
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100