08/05/2014 by Nitesh

How To Convert a Future Date Time to “X minutes from now” in C#

Friends, In my previous post, we saw how can we convert a Date Time value to “X Minutes Ago” feature using C#. A user interestingly asked me for a function that can do something similar but for future dates. Today, in this post we will see how we can achieve similar functionality for a future…

Continue Reading »

07/05/2014 by Nitesh

How To Convert a Date Time to “X minutes ago” in C#

Friends, In one of our previous post, we saw how can we convert a Date Time value to “X Minutes Ago” feature using jQuery. Today, in this post we will see how we can achieve the same functionality in C#. In this post we will write a C# function that will take a DateTime as…

Continue Reading »

28/04/2014 by Nitesh

How To Round a decimal value to 2 decimal places in C#

Friends, This is a very basic post that will explain few ways of restricting a decimal value to 2 decimal places in C#. Normally, we need to output the decimal values to 2 precision numbers. However, sometimes we also need to restrict the decimal variable itself to store not more than 2 decimal values (For…

Continue Reading »

28/02/2014 by Nitesh

How to Show $ symbol on your Windows Phone

Friends, Recently one of my friends tweeted regarding missing “$” symbol on his Lumia Phone. Miss u dollar sign in #nokia #Lumina keyboard. @windowsphone @nokia — Sandeep Shekhawat (@ss_shekhawat) February 26, 2014   This post is a simple response to the tweet on hwo you can get back the “$” symbol on your Lumia phone….

Continue Reading »

26/02/2014 by Nitesh

How to Add Custom Checkbox Column to DataGridView in Windows Forms

Friends, In this post we will see how we can add a custom Checkbox column to an existing DataGridView in windows forms. Generally, when you assign a data source to the DataGridView and the data source contains a “bit” column or “bool” column, DataGridView automatically converts it into a Checkbox column. However, at times we…

Continue Reading »

1 2 3 4 5 8