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 »

04/05/2014 by Nitesh

How To Create Multi Level Menu Dynamically Using C# in ASP.Net

Friends, This is Part 4 of the series “Creating Menus”. We have already seen how to create a single level menu dynamically in ASP.Net here. This post will explain how to create a multi-level menu dynamically using C# in Asp.Net. You can also read the other 2 posts in this series with the links mentioned…

Continue Reading »

29/04/2014 by Nitesh

How to Create Single Level Menu Dynamically Using C# in ASP.Net

Friends, This is Part 3 of the series “Creating Menus”. This post will explain how to create a single level menu dynamically using C# in Asp.Net. You can read the other 2 posts in this series with the links mentioned below – Part 2 Part 1 In this post we will create a dynamic single-level…

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 »

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 »

1 8 9 10 11 12 14