If you want a shortcut, that’s what Math.Min
is for. It returns the smaller of two numbers.
More Related Contents:
- Given the following code what number will the message box display?
- IF 1 MONTH IS INPUT IN TEXTBOX THEN AUTOMATICALLY SET IN DATETIMEPICKER1 AND DATETIMEPIKER2 THE DATE
- VB.NET Join Error Conversion from String is not valid
- Linq to Sql: Multiple left outer joins
- .NET Core doesn’t know about Windows 1252, how to fix?
- Performance difference between IIf() and If
- Webpage works in IE, Chrome and Firefox, but not when using the .NET WebBrowser control
- Ampersand vs plus for concatenating strings in VB.NET [duplicate]
- Select Case True
- How to wait until WebBrowser is completely loaded in VB.NET?
- Or versus OrElse
- VB.NET progressbar backgroundworker
- .DrawImage with opacity?
- Convert a string to a datetime
- VB.NET What is the purpose of a class or module?
- no value given for one or more required parameters
- Printing multiple pages using PrintDocument and HasMorePages
- How to POST a JSON to a specific url using VB.NET?
- Integer.Parse vs. CInt
- Control array in VB.NET
- Crossthread operation not valid… – VB.NET
- Casting a boolean to an integer returns -1 for true?
- Vb.net Random Number generator generating same number many times
- loop over all textboxes in a form, including those inside a groupbox
- VB.net Need Text Box to Only Accept Numbers
- Progress Bar and Background Worker
- DataGridView Cascading/Dependent ComboBox Columns
- Convert string to datetime in vb.net
- Help with Linq and Generics. Using GetValue inside a Query
- What is the difference between “instantiated” and “initialized”?