14/02/2014 by Nitesh

How to Add User to SQL Server Database using Scripts

While development, we normally use SQL Server Management Studio for various operations. However, when the code goes in production, Management studio is not found and we need to Execute SQL Queries using sqlcmd tool. Very often, we use a separate user account to access the database used by our program. This post will explain you…

Continue Reading »

10/01/2014 by Nitesh

How to Move a Windows Form By Dragging

Friends, Today, I was working on a Desktop application where I was required to drag a form by Mouse left click as we do in normal drag and drop operations. the only difference in this scenario was I needed to drag the entire form and the form was not supposed to be dropped anywhere else….

Continue Reading »

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 »

28/08/2013 by Nitesh

Why does Gmail Inbox stores 2 copies of Sent Emails from Outlook

Friends, After configuring Gmail in Outlook, I noticed that there are 2 copies of email saved in my Gmail Inbox for any email sent from Outlook. This is not an issue for many of us as we normally look for mails received, but becomes a very cluttered inbox if you are reading a conversation that…

Continue Reading »

1 2 3 4 5 6 8