View Single Post
  #1 (permalink)  
Old December 23rd, 2006, 11:14 AM
akumarp2p akumarp2p is offline
Authorized User
Join Date: Nov 2006
Location: New Delhi, Delhi, India.
Posts: 32
Thanks: 0
Thanked 0 Times in 0 Posts
Default textbox MaxLength

I am using C# 2005 to develop a application.
At Design Time i set the property of textBox like this

but it takes more than 25 Character.

This problem also occurs with Multiline textBox.

Another problem is this on click of enter no message display

  private void txtVendorName_KeyUp(object sender, KeyEventArgs e)
            //if(e.KeyCode ==Keys.Enter)
            // MessageBox.Show("You Pressed Enter");

private void txtVendorName_KeyPress(object sender, KeyPressEventArgs e)

Help me

Thanks and Regards
Kumar Ashish
Kumar Ashish