Need some help with an event. Im in the process of writing a program that sends data to a usb port for a motor controler. Im stuck in a situation where I want to pause the program using a button from within a for loop, evewrything I do I end up with this. Error 1 Operator '!' cannot be applied to operand of type 'System.Windows.Forms.Button'
here is the code sample I have.
{
lblAddress.Text =
lblSndDta.Text =
pgbProgress.Value = 0;
btnPause.Text =
pgbProgress.Value = x;
}
is there a way "besides creating a new event" that I can use the button within a for loop
electroteck