Thursday, August 7, 2008

No setter for KeyChar property in KeyPressEventArgs class

Have you ever tried to set the property KeyChar of the KeyPressEventArgs class? At least, we should be able to do that when looking at the tooltip documentation.

However, no matter how much you struggle, it will never compile. The reason is simple - a minor mistake in the documentation for the KeyChar property. KeyChar has only the getter and NO SETTER.

No comments: