Files
CleanMachine/CleanMachineHMI/Utils/KeyboardTextBox.cs
gongxh 75b42432b9 1
2021-12-27 21:59:01 +08:00

42 lines
879 B
C#

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace CleanMachineHMI.Utils
{
public partial class KeyboardTextBox : Krypton.Toolkit.KryptonTextBox
{
public KeyboardTextBox()
{
InitializeComponent();
}
protected override void OnPaint(PaintEventArgs pe)
{
base.OnPaint(pe);
}
protected override void OnGotFocus(EventArgs e)
{
base.OnGotFocus(e);
KeyboardAutoPopUp.ShowInputPanel();
}
protected override void OnLostFocus(EventArgs e)
{
base.OnLostFocus(e);
KeyboardAutoPopUp.HideInputPanel();
}
}
}