Click here to Skip to main content
12,455,917 members (50,454 online)
Rate this:
 
Please Sign up or sign in to vote.
See more: C#
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
Frans Jan2.7K
Comments
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
 
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
Top Experts
Last 24hrsThis month


Advertise | Privacy | Mobile
Web02 | 2.8.160826.1 | Last Updated 9 Oct 2012
Copyright © CodeProject, 1999-2016
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