For the DateBox, you don't have to inherit anything, we already have a static method that will handle the date format for you . MicroFour.StrataFrame.UI.Windows.Forms.DateBox.DateFormatOverride = MicroFour.StrataFrame.UI.Windows.Forms.DateFormats.MonthDayYear;
Put that in your Program.cs and it will affect the DateFormat of any StrataFrame DateBox that does not have the property explictely set.
For the TextBox, you'll want to inherit our textbox in your own, and override the OnEnter and OnLeave methods:
using System;
using System.Collections.Generic;
using System.Text;namespace WindowsApplication1
{
public class MyTextBox : MicroFour.StrataFrame.UI.Windows.Forms.Textbox
{
protected override void OnEnter( EventArgs e )
{
this.BackColor = System.Drawing.Color.Gray;
base.OnEnter( e );
}
protected override void OnLeave( EventArgs e )
{
this.BackColor = System.Drawing.Color.White;
base.OnLeave( e );
}
}
}
Then if you use your own overriden control rather than our standard one, it will reflect your added functionality.