private void loadInkCap() { try { inkCapture1 = new Intermec.Windows.Forms.InkCapture(); inkCapture1.Size = this.Size; inkCapture1.Location = this.Location; inkCapture1.InkCaptureInitEvent += new InkCaptureInitEventHandler(inkCapture1_InkCaptureInitEvent); inkCapture1.MouseUp += new MouseEventHandler(inkCapture1_MouseUp); this.Controls.Add(inkCapture1); } catch (Intermec.Windows.Forms.InkCaptureException ex) { addLog("InkCaptureException in loadInkCap. Is the runtime ITCink.dll installed?\n" + ex.Message); } catch (Exception ex) { addLog("Exception in loadInkCap. Is the runtime ITCink.dll installed?\n" + ex.Message); } if (inkCapture1 == null) { addLog("Exception in loadInkCap. Is the runtime ITCink.dll installed?"); throw new MissingMethodException("Exception in loadInkCap. Is the runtime ITCink.dll installed?"); } }
private void loadInkCap() { try { inkCapture1 = new Intermec.Windows.Forms.InkCapture(); inkCapture1.Size = this.Size; inkCapture1.Location = this.Location; inkCapture1.InkCaptureInitEvent += new InkCaptureInitEventHandler(inkCapture1_InkCaptureInitEvent); inkCapture1.MouseUp += new MouseEventHandler(inkCapture1_MouseUp); this.Controls.Add(inkCapture1); } catch (Intermec.Windows.Forms.InkCaptureException ex) { addLog("InkCaptureException in loadInkCap. Is the runtime ITCink.dll installed?\n" + ex.Message); } catch (Exception ex) { addLog("Exception in loadInkCap. Is the runtime ITCink.dll installed?\n" + ex.Message); } if (inkCapture1 == null) { addLog("Exception in loadInkCap. Is the runtime ITCink.dll installed?"); throw new MissingMethodException("Exception in loadInkCap. Is the runtime ITCink.dll installed?"); } }
public new void Dispose() { if (inkCapture1 != null) { inkCapture1.Dispose(); inkCapture1 = null; } //base.Dispose(); do not use!! }
public new void Dispose() { if (inkCapture1 != null) { inkCapture1.Dispose(); inkCapture1 = null; } //base.Dispose(); do not use!! }