02/06/2015 by Nitesh

How To Create a TextBox Accepting Only Numbers in Windows Forms

Friends, Many times we need to have a textbox on our windows forms where we need to accept only numbers from the end users. .Net does provide us a NumericUpDown control but it is not always handy. In this post, we will see how we can create a TextBox accepting only numbers in Windows Forms…

Continue Reading »

01/06/2015 by Nitesh

How To Calculate Age in C#

Friends, Another post that is used in almost every application built where one need to calculate the age of a person using C# when his/her Date Of Birth is given. This post will explain how can we calculate age in C# when the user enters his/her Date Of Birth.      static void CalculateAndPrintAge(DateTime birthday)     …

Continue Reading »

02/02/2015 by Nitesh

Connect Access 2007-2010 Database In C#

Friends, In this post, we will see how can we connect Access 2007-2010 database in C#. As we know Microsoft introduced new Access format from Access 2007 onwards (.accdb extension), we cannot use the default JET.OLEDB provider that we used to use before. With the new database, Microsoft also launched a new provider namely ACE.OLEDB…

Continue Reading »

14/01/2015 by Nitesh

Solution: ‘Microsoft.Jet.OLEDB.4.0’ provider is not registered on the local machine

Friends, While working with Access, many times you may get the famous exception “Microsoft.Jet.OLEDB.4.0′ provider is not registered on the local machine“. This normally happens that your code runs fine on your development machine and when you try the run it on production server, this error comes. IN this post, we will see a solution…

Continue Reading »

09/01/2015 by Nitesh

Download Image Files From FTP Server in C#

Friends, In my previous posts, I dealt with How To List Files From FTP Server, How To Delete File From FTP Server. In this post, we will see how can we can download an image file from FTP server using C# from within your Console or Windows Forms Application. private StreamReader DownloadFileFromFTP() { var request…

Continue Reading »

1 2 3 4 5 10