06/01/2015 by Nitesh

Convert Text to Title Case As You Type in TextBox Control in Windows Forms

Friends, In this post we will see how can we convert any text written by user in a TextBox Control to Title Case as they type in. If you don’t know about TitleCase, check it on Wikipedia here. In simple words, any sentence where 1st letter of every word is capital is known as to…

Continue Reading »

05/01/2015 by Nitesh

Change Height of TextBox Control in Windows Forms

Friends, From the title, this seems to be a very simple post that every novice programmer would know but changing the height of a textbox control in a Windows Forms Application is bit tricky that thought. You must be wondering that setting the Size.Height property of the control would do this, but as soon as…

Continue Reading »

02/01/2015 by Nitesh

Validate Email Using Regex in C#

Friends, In this small post, I will show you how we can validate a string as proper email or not using Regex class in C#. Below is the code – public bool ValidateEmail(string emailAddress) { string regexPattern = @”^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,4}$”; Match matches=Regex.Match(emailAddress,regexPattern); return matches.Success; } The above function takes a string parameter and returns if the…

Continue Reading »

21/10/2014 by Nitesh

How To Implement Select All/Unselect All CheckBoxes in GridView Rows

Friends, In my last posts, I explained How To Add CheckBox to GridView and How To Get Selected Multiple Rows From GridView. In this post, I will explain how canĀ  you select/unselect all rows of a GridView by selecting a CheckBox in client side. We will start with using the same GridView, we are using…

Continue Reading »

20/10/2014 by Nitesh

How To Get Multiple Selected Rows From GridView In ASP.Net

Friends, In my last post I explained how easily we can add a CheckBox column to a GridView in Asp.Net. Having a CheckBox column in GridView, now we can select multiple records from the GridView. We can now write some piece of code with the help of which we can perform multiple actions on the…

Continue Reading »

1 2 3 4 5 6 10