views:

167

answers:

1

Hi, I'd like the default windows system sound to play when a user attempts to enter text into a WPF TextBox which has already reached it's MaxLength value. How is this possible?

A: 

I'm not used to sound playing in WPF, but I suggest you to suscribe to the KeyDown event of your textbox, and test the number of characters in the textbox against its maximal capacity.

Aurélien Ribon