hello guys, i have a textbox in a form called form1 where the user is to fill his/her name, i need to do some validation to the textbox so that the user inputs only alphabetical letters, i also need to display the user inputs to another form where i have a multiline textbox can some one show me how to do this.thanks
Ps. if you put some code here can you please put it in a way so that i will now which is for which .so i will learn bit by bit.thanks
Loading

Prabhu RajaRank #861 · 2.6K reputationPosted Oct 3, 2011, 1:00 AM EDT
azzo stones59 reputationPosted Oct 3, 2011, 1:37 AM EDT
VulpesRank #55 · 29.2K reputationPosted Oct 3, 2011, 2:59 AM EDT
azzo stones59 reputationPosted Oct 3, 2011, 9:13 AM EDT
VulpesRank #55 · 29.2K reputationPosted Oct 3, 2011, 9:47 AM EDT
// add this using directive
using System.Globalization;
// change the other code to the following
TextBox tb = form2.Controls["mlTextBox"] as TextBox
if (tb != null) // if it's null something's wrong!
{
TextInfo ti = CultureInfo.CurrentCulture.TextInfo;
string name = this.textBox1.Text.Trim() + " " + this.textBox2.Text.Trim();
tb.Text = ti.ToTitleCase(name);
}
azzo stones59 reputationPosted Oct 3, 2011, 12:36 PM EDT