コード例 #1
0
        private string DisplayKeyboard(string keyText, string type)
        {
            _sKeyText = "";

            var objKeyboard = new KeyboardInterface();

            if (type == "Pwd")
            {
                objKeyboard.IsPwd = true;
            }
            objKeyboard.Closing  += ObjKeyboardClosing;
            objKeyboard.KeyString = keyText;
            objKeyboard.Top       = Top + Height - objKeyboard.Height;
            objKeyboard.Left      = Left + Width / 2 - objKeyboard.Width / 2;
            objKeyboard.ShowDialog();
            return(_sKeyText);
        }
コード例 #2
0
        private string DisplayKeyboard(string keyText, string type)
        {
            _sKeyText = "";

            var objKeyboard = new KeyboardInterface();
            if (type == "Pwd")
            {
                objKeyboard.IsPwd = true;
            }
            objKeyboard.Closing += ObjKeyboardClosing;
            objKeyboard.KeyString = keyText;
            objKeyboard.Top = Top + Height - objKeyboard.Height;
            objKeyboard.Left = Left + Width / 2 - objKeyboard.Width / 2;
            objKeyboard.ShowDialog();
            return _sKeyText;
        }