Answered Limiting characters in a field

  • Tuesday, June 26, 2012 11:45 AM
     
     

    I am entering data into an editable data grid and, for example, I want to limit a field to 40 characters because I am printing it to a report and I want the field to be limited in size. 

    I understand how to set the maximum characters in the validation for a field, but I want to actually cut off the user from typing past the limit. It isn't very user-friendly to just see a validation error saying "whoops, too many characters" and have to figure out how many characters need deleted. 


    MessageBox.Show("Hello, world.")

All Replies