Measure Difference between 2 Dates


Getting differences between two given dates is as easy as it can get. The function used here is the End_Date.Subtract(Start_Date). This gives us a time span that has the time interval between the two dates. The time span can return values in the form of days, years, etc.

Solve Quadratic Equation Code and Tutorial in C#


You can very easily solve a Quadratic Equation with this small program. Just enter the values in the 3 text boxes and you will find the resulting roots(solutions) of the Quadratic equation on the right. Watch the final output and see the source code further below: 

Solve Quadratic Equation in C# WinForms Application

The C# Code below is simple, structured & complete. Note the code for the text box change event is similar for all the 3 text boxes.