Hope this helps :
this.textBox021001.GotFocus += new
System.EventHandler(this.textMainFrame_GotFocus);
this.textBox00100.LostFocus += new
System.EventHandler(this.textMainFrame_LostFocus);
#region textMainFrame_LostFocus
/// <summary>
/// Disable the Inputpanel
/// </summary>
private void textMainFrame_LostFocus(object sender, System.EventArgs e)
{
inputPanelMainFrame.Enabled = false;
} // private void textMainFrame_LostFocus(object sender, System.EventArgs
e)
#endregion
#region textMainFrame_GotFocus
/// <summary>
/// Enable the Inputpanel when the TextBox is not ReadOnly
/// </summary>
private void textMainFrame_GotFocus(object sender, System.EventArgs e)
{
System.Windows.Forms.TextBox textBox = (System.Windows.Forms.TextBox)
sender;
if (textBox.ReadOnly == false)
inputPanelMainFrame.Enabled = true;
} // private void textMainFrame_GotFocus(object sender, System.EventArgs
e)
Mark Johnson, Berlin Germany
(e-mail address removed)