public ImageScaner(IAcquirerParam param, SharedQueue <Object> objs) { // _msgs = objs; InitializeComponent(); twainDevice = new twain(); twainDevice.Init(this.Handle); this.ShowInTaskbar = false; this.DialogResult = DialogResult.Cancel; this.Text = "扫描"; // this.HandleDestroyed += ImageScaner_HandleDestroyed; // this.TopLevel = true; }
private void btnScan_Click(object sender, EventArgs e) { twainDevice.Init(this.Handle); toolStripButton1_Click(this, EventArgs.Empty); }