ShowDialog

T

Todd A

Here is a real simple question, but one I can't seem to locate an anwer
to...
I have my main form for an application. I click a button to open another
form for data entry. I would like to use the ShowDialog method to show this
form. When I do, the soft keyboard is no longer available for use, which
prevents the user from enter data in some textboxes.

What's the secret to getting the soft keyboard available on a form that is
shown as a dialog form?

Thanks,
 
E

Erik Porter

Make sure you have the InputKeyboard and a Menu Component on that form and
it should show up.

Erik Porter
Microsoft .NET MVP
 
G

Guest

You should also add GotFocus and LostFocus event handlers for your text controls. When the GotFocus event is raised, you should set the InputPanel's Enabled property to true. When the LostFocus event is raised, you should set the InputPanel's Enabled property to false. This will cause the InputPanel to display when a text control gains focus and hide when a text control loses focus

It's also a best practice to ensure that the InputPanel does not obscure any text controls when enabled. You can either position the controls above the area that the InputPanel would occupy when enabled, or you can place your controls on a Panel with a ScrollBar and add logic to emulate scrolling.
 
T

Todd A

Thank you.

--
Todd Acheson

Stuart Fujitani said:
You should also add GotFocus and LostFocus event handlers for your text
controls. When the GotFocus event is raised, you should set the
InputPanel's Enabled property to true. When the LostFocus event is raised,
you should set the InputPanel's Enabled property to false. This will cause
the InputPanel to display when a text control gains focus and hide when a
text control loses focus.
It's also a best practice to ensure that the InputPanel does not obscure
any text controls when enabled. You can either position the controls above
the area that the InputPanel would occupy when enabled, or you can place
your controls on a Panel with a ScrollBar and add logic to emulate
scrolling.
 

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