inputpanel

  • Thread starter Thread starter phredd
  • Start date Start date
P

phredd

Newbie here....how do you make the inputpanel(keyboard)
pop up automatic when you tap a textbox ?
 
Add an input panel to your form, then when you want it to appear (such as in
the GotFocus event of the control) use InputPanel1.Enabled=True.

Steve
 
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)
 
Back
Top