The BackColor of the TextBoxExt is customized based on the Visual style appearance. When Visual style is set as Office2007 or Office2010 style in TextBoxExt, the bordercolor and backcolor of the TextBoxExt is specified in source level. So, the default backcolor of the TextBoxExt gets applied when it is lost focus. You can achieve this requirement by creating custom control that is inherited from TextBoxExt and overriding the following events.
The following code example demonstrates the same.
The following screenshots illustrate the output.
Figure 1: Before overriding the functions
Figure 2: After overriding the functions
|Article ID:||Published Date:||Last Revised Date:||Platform:||Control:|