Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C# WinForm
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 1:16am
Frans Jan2.2K
Comments
Varun Sareen at 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 at 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
good
Please Sign up or sign in to vote.

Solution 1

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

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

  Print Answers RSS
0 Sergey Alexandrovich Kryukov 429
1 OriginalGriff 419
2 Maciej Los 285
3 CPallini 180
4 Peter Leow 180
0 Sergey Alexandrovich Kryukov 6,971
1 OriginalGriff 5,532
2 Peter Leow 3,997
3 Mika Wendelius 2,850
4 CHill60 2,808


Advertise | Privacy | Mobile
Web03 | 2.8.150224.1 | Last Updated 9 Oct 2012
Copyright © CodeProject, 1999-2015
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