C# class creation
<p>I just want to ask if it is possible to add a method within a class in c#?? </p>

<p>Like for example I have a form named Sample Form and then I have two textbox that the user should enter data. Then I have a button that will save the data in the textbox into the database. But before saving it in the database it should first check if the textbox has a value or not. </p>

<p>What I want to do is add a class and put there a function or a method that will do the checking so that I can use it in other forms also. How will I do it? Please help me. Thank you so much in advanced. </p>
