HowTo: Open a InputPanel without a menu

G

Guy Berlin

Hi,

I am developing an application on the .net compact framework,
my application has no menu (fully graphic interface) and i want to be
able to edit text, i want to open the InputPanel in some way, the
problem is that it seems impossible to do if you have no mainmenu.

any help will be appricated,
Guy
 
A

ACP

Public Class Sip

<System.Runtime.InteropServices.DllImport
("coredll.dll")> _
Private Shared Function SipShowIM(ByVal i As IPStatus)
As Integer
End Function

Private Enum SIPStatus
SIPF_OFF = 0
SIPF_ON
End Enum

' Mostrar el SIP
Public Shared Sub Show()
SipShowIM(SIPStatus.SIPF_ON)
End Sub

' Ocultar el SIP
Public Shared Sub Hide()
SipShowIM(SIPStatus.SIPF_OFF)
End Sub

End Class



Dim Teclado As Sip

Teclado.Show
Teclado.Hide
 
D

Dan Ardelean

Wait for the SP2 from Compact Framework! It was possible
in the version they recalled so it will be avaible when
they will release it again.(it won't be necessary to
declare a mainmenu, just a SIP)
 
G

Guy Berlin

O.k, found out, here is the code in c#:

[DllImport("coredll.dll")]private static extern bool SipShowIM(int dwFlag);

then call the function to show the input panel:
SipShowIM(1);

and to hide it:
SipShowIM(0);

i am still looking how to change the inputpanel position...
 
M

Mark Johnson

This works fine for me.

Mark Johnson
(e-mail address removed)

this.textBox00102.GotFocus += new
System.EventHandler(this.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)
 

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