J
jd_ie
Hi all,
I am programming a Windows CE .NET 4.1 device using Visual C# .NET. I
add an InputPanel (Keyboard) to a form with the code:
private Microsoft.WindowsCE.Forms.InputPanel inputPanel1;
and in that forms constructor I initialise the inputPanel with:
inputPanel1 = new Microsoft.WindowsCE.Forms.InputPanel();
I can then show and hide the Input Panel with:
inputPanel1.Enabled = true;
and
inputPanel1.Enabled = false;
My question is, is there any way to change the location of the input
panel? I have found the following functions, SHSipInfo (
http://msdn.microsoft.com/library/d...y/en-us/win_ce/html/pwc_ControllingtheSIP.asp
) and SHSipPreference (
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/apippc/html/ppc_aygshell_cayp.asp
) of which the second seems more likely to move the input panel for me.
Does anyone have experience using either of these functions through a
P/Invoke? I am not very familiar with the P/Invoke process. The
problems I can see are 1) what dll would I need to include in the
[DllImport("x.dll")] line, and 2) the second function takes a reference
to a form windows (a hWnd), and would I need to pass it one with a
location that I want the input panel to take? Is this possible, and if
so, does anyone have any source code examples?
Even if this is not possible, could someone let me know why? At least I
could go back to my boss with that information.
Thanking you all for any help,
Best regards,
Jonathan
I am programming a Windows CE .NET 4.1 device using Visual C# .NET. I
add an InputPanel (Keyboard) to a form with the code:
private Microsoft.WindowsCE.Forms.InputPanel inputPanel1;
and in that forms constructor I initialise the inputPanel with:
inputPanel1 = new Microsoft.WindowsCE.Forms.InputPanel();
I can then show and hide the Input Panel with:
inputPanel1.Enabled = true;
and
inputPanel1.Enabled = false;
My question is, is there any way to change the location of the input
panel? I have found the following functions, SHSipInfo (
http://msdn.microsoft.com/library/d...y/en-us/win_ce/html/pwc_ControllingtheSIP.asp
) and SHSipPreference (
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/apippc/html/ppc_aygshell_cayp.asp
) of which the second seems more likely to move the input panel for me.
Does anyone have experience using either of these functions through a
P/Invoke? I am not very familiar with the P/Invoke process. The
problems I can see are 1) what dll would I need to include in the
[DllImport("x.dll")] line, and 2) the second function takes a reference
to a form windows (a hWnd), and would I need to pass it one with a
location that I want the input panel to take? Is this possible, and if
so, does anyone have any source code examples?
Even if this is not possible, could someone let me know why? At least I
could go back to my boss with that information.
Thanking you all for any help,
Best regards,
Jonathan