private void InspectBtn_Click(object sender, EventArgs e) { hWndCtrl.ClearResult(); JPTCG.Vision.HalconInspection.RectData myRes = myHalcon.Inspect(); hWndCtrl.DrawRect(myRes); }