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

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

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)
        {
            MessageBox.Show(e.KeyValue.ToString());
            //if(e.KeyCode ==Keys.Enter)
            //{
            // MessageBox.Show("You Pressed Enter");
            //}
            //MessageBox.Show(e.KeyValue.ToString());
        }

private void txtVendorName_KeyPress(object sender, KeyPressEventArgs e)
        {
            MessageBox.Show(e.KeyChar.ToString());
        }

Urgent
Help me

Thanks and Regards
Kumar Ashish
9350789189
__________________
Thanks
Kumar Ashish
krashishroa@yahoo.co.in