08/06/2014 by Nitesh

How To Get Node at a Given Point in Tree View

Friends, Today, I was working with Treeview Control and in the MouseMove event handler of the control, I was supposed to get the node of the TreeView control present at the current mouse pointer. I looked around for sometime before I figured out how this can be done. In this post, we will see how…

Continue Reading »

05/06/2014 by Nitesh

How To Check If a Column Exists in DataRow

Friends, This is a very small post to explain how can you check whether a column exists in a DataRow. This is a very handy tip when you are working with a set of data and you’re not sure everytime the query will return a specific column. Let us assume we have a DataRow named…

Continue Reading »

05/05/2014 by Nitesh

How To Limit Dates in DateTimePicker Control in Windows Forms

Dear Friends, Another small tip that may help in day-to-day code development. When working with DateTimePicker controls in Windows forms, we come across a situation where we need to block the control to have a minimum and maximum dates. For example, the DOB field cannot have dates greater than today and DateOfLeavingCompany field cannot have…

Continue Reading »

27/02/2014 by Nitesh

How to Add Child Forms to a Menu Item automatically in MDI Windows Form Application

Friends, When working with MDI applications in Windows forms, on several occasions we end up opening a lot of child forms and then finding across where the child form is. To provide a nice user experience, it is advisable to display all open child forms under a menu named “Windows”. This is not a must…

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 6