public void stopWintabInput(bool leaveActive = false) { tl.CloseCurrentContext(); tl = null; if (!leaveActive) { tabletActive = false; } }
public bool startWintabInput() { if (!WintabDN.CWintabInfo.IsWintabAvailable()) { return(false); } if (tl == null) { tl = new TabletLaunch(this); } //textBox1.Text = ""; Screen screen = Screen.FromControl(this); tl.InitDataCapture(screen, 10000, 10000, true); this.Cursor = Cursors.Cross; tabletActive = true; return(true); }