I am getting frustrated. I need to load a new form when a signal changes in the IRC5. I can not use the SignalBindingSource because I have to bind a visible control to it in order to see it change. And I can not get the standard signals to show my form. Here is a code example.
private void _sigSystemState_Changed(object sender, ABB.Robotics.Controllers.IOSystemDomain.SignalChangedEventArgs e)
//Update the GUI if the signal GI_001 changes in the controller
{
CalibrationView2 _CalibrationView2 = new CalibrationView2();
_CalibrationView2.ShowMe(this);
}
private void button1_Click(object sender, EventArgs e)
{
CalibrationView2 _CalibrationView2 = new CalibrationView2();
_CalibrationView2.ShowMe(this);
}
The button example works fine but the SignalBindingSouces change event is on another thread? Exact error: “Controls created on one thread cannot be parented to a control on a different thread.”
So how do I have a simple signal show a new view/form?
Shane