private void CognexJobEditForm_Load(object sender, EventArgs e) { // Create the edit control //_toolGroupEdit = new CogToolGroupEditV2(); // Use in Vision Pro 6 _toolGroupEdit = new CogToolGroupEditV2(); _toolGroupEdit.Dock = DockStyle.Fill; panelToolGroupEdit.Controls.Add(_toolGroupEdit); // Assign the tool to the edit control _toolGroupEdit.Subject = _cognexJob.CogToolGroup; if (_cognexJob.CogToolGroup.Tools == null || _cognexJob.CogToolGroup.Tools.Count == 0) { _toolGroupEdit.ResetText(); CogToolBlock grabberBufferToolBlock = new CogToolBlock(); grabberBufferToolBlock.Name = "Grabber Buffer"; CogToolBlockTerminal outputTerminal = new CogToolBlockTerminal("OutputBuffer", typeof(ICogImage)); grabberBufferToolBlock.Outputs.Add(outputTerminal); _cognexJob.CogToolGroup.Tools.Add(grabberBufferToolBlock); } }