Click here to Skip to main content
15,867,308 members
Please Sign up or sign in to vote.
1.00/5 (1 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
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

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

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900