zohaib khan

zohaib khan

  • NA
  • 26
  • 36.5k

Add MaxCharactersAllowed property to TextBox same as MaxLength

Jun 25 2012 4:53 AM
Hi,

In my project I set max char allowed for TextBox  using following

 TextBox.MaxLength = 20;
 
 I want add one more property as MaxCharactersAllowed. This will work same as MaxLength
 
 TextBox.MaxCharactersAllowed = 20;

I found that TextBox properties written in "System.Windows.Controls.TextBox.cs"
 
Any idea how to add property?

- Thanks


Answers (2)