Example #1
0
        /// <summary>
        /// Shows the keyboard.
        /// </summary>
        private void ShowKeyboard()
        {
            var popup = new OnScreenKeyboardForm(IsNumeric, isCapsLock, isNumLock, isShift, isAlt, isCtrl);
            int posX;

            if (IsNumeric)
            {
                posX          = Left;
                locationPoint = GetPosition(posX, popup);
                popup.Width   = numFormWidth;
                popup.Height  = numFormHeight;
            }
            else
            {
                posX          = (Left + Width / 2) - popup.Width / 2;
                locationPoint = GetPosition(posX, popup);
            }

            popup.LocationPoint = locationPoint;
            popup.Show();
        }