10/01/2014 by Nitesh

How to Get Width & Height of Desktop in WinForms

Friends, In certain scenarios we need to know the screen resolution our desktop application will be running on. To get this information, Microsoft provides us with a very handy class namely SystemInformation that can be found in System.Windows.Forms namespace. Using this class, we can almost every information about the current system environment, the application is…

Continue Reading »

14/12/2013 by Nitesh

How To Set DateTimePicker controls value blank in C#

Friends, We all have been using the default DateTimePicker control in C# Winforms and in certain scenarios, we need to display a blank value in the DateTimePicker control. By default you can set the control’s value to null or DBNUll.Value. However, this can be done by using a small trick. This post will explain how…

Continue Reading »

05/10/2013 by Nitesh

How to Count Work Days Between 2 Dates in SQL Server

Friends, This is a real quick post to explain how you can calculate the number of work days between 2 dates in SQL Server. This post considers the Workdays from Monday to Friday. In case you want the workdays from Monday to Saturday, read on. So, lets us write a function that will display the…

Continue Reading »

03/10/2013 by Nitesh

Solution: The WITH MOVE clause can be used to relocate one or more files

Friends, Today working with SQL Server I was trying to restore a DB from .bak file and got a strange error while restoring using the normal procedure. I was working on SQL Server 2008 R2 and the backup was from an old version making me think the problem may be because incorrect SQL versions. The…

Continue Reading »

13/06/2013 by Nitesh

Connect your Twitter App using PhP for Twitter API v1.1

Friends, By the time you are reading this article, you must be knowing that Twitter has retired its API v1 and have ensured all new requests are served using v1.1 of the API. As I mentioned in my previous post, we now need to authenticate users before trying to retrieve the user’s  timeline. For this,…

Continue Reading »

1 2 3 4