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 »

09/01/2014 by Nitesh

How to Dock/Display Windows Form on Top of all Applications on Desktop

Friends, Most of us have seen and used TeamViewer. When TeamViewer starts, it displays a small window at the right bottom of the Desktop that remains on top of all the applications that we open on our computer. The TeamViewer icon looks something similar to the image shown below. You can achieve this feature in…

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 »

22/06/2013 by Nitesh

How to Disable Mouse Scroll in DevExpress LookupEdit Control

Friends, LookupEdit is another one of the most commonly used controls in DevExpress WinForms library as it resembles the default ComoboBox control provided in the default .Net Toolbox. As compared to normal Combobox control, you can display rows of data in a LookupEdit Control. The control by default support AutoComplete feature so when you start…

Continue Reading »

1 3 4 5 6