inputpanel

P

phredd

Newbie here....how do you make the inputpanel(keyboard)
pop up automatic when you tap a textbox ?
 
S

Steven Licciardi

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
 
M

Mark Johnson

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)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top