I have a base class library which contains all the UI controls with extended capabilities.
Ex: XTextBox <---derived from------ TextBox
XPanel <---derived from------ Panel
XLabel <---derived from------ Label
I use this library in my client application for rendering the controls on the UI.
I have an AppConfig file which determines the font/color for my client application.
Now the issue am facing is when i set the font values to the controls in my base class library.
For ex: The backcolor of the XTextBox is read from a utility class CUtility which reads the color information from an exe.Config file
this.BackColor = CUtility.GetBackColor();
//this represents the XTextBox control.
Many a times the backcolor is not set for some UI Controls in the runtime(Ex: Panels and for some UI Controls)
However these colors are set if i do it from the UI designer.
Any ideas where am doing wrong.
Regards