1

I'm developping an application for Honeywell Dolphin 6100, a mobile computer with a barcode scanner that uses Windows CE 5.0 like OS.

I employed in my app. an "openFileDialog" compenent, but the the problem is that a virtual keyboard is showing when the field of the file name is focused, how should disable it or make it invisible ?

Any help on this ?

Note: I'm using VS2008 (C#) and I'm working on Windows 7.

I tried to modify the registery by using the code below but with no success :

        RegistryKey rkey = Registry.CurrentUser;
        RegistryKey wtaKey = rkey.OpenSubKey(@"ControlPanel\Sip", true);
        try
        {
            wtaKey.SetValue("AllowChange", "dword:0");
        }
        catch (UnauthorizedAccessException ex)
        {
            MessageBox.Show(ex.Message);
            return;
        }
Mohamed Jihed Jaouadi
  • 1,427
  • 4
  • 25
  • 44

2 Answers2

0

Use the InputPanel class and set it's Enabled property to false;

EDIT 1

To disable it system-wide, set the following registry key (requires a soft reset afterward):

[HKEY_CURRENT_USER\ControlPanel\Sip]
    AllowChange=dword:0

EDIT 2

The value is a DWORD (integer in C#) and the value is zero, so something like this:

using (var key = Registry.CurrentUser.CreateSubKey("ControlPanel\\Sip"))
{
    key.SetValue("AllowChange", 0);
}
ctacke
  • 66,480
  • 18
  • 94
  • 155
0

this worked for me:

        try
        {
            RegistryKey myKey = Registry.CurrentUser.OpenSubKey("ControlPanel\\SIP", true);
            if (myKey != null)
            {
                myKey.SetValue("TurnOffAutoDeploy", 1, RegistryValueKind.DWord);
                myKey.Close();
            }
        }
        catch { }
Milko
  • 71
  • 5
  • Adding some explanation as to what the code does differently and why that resolves the issue would make your answer much better. Generally answers that explain the solutions rather than just copy and paste answers are preferred here at StackOverflow. – Alexander Rossa Jan 09 '20 at 12:24