Click here to Skip to main content
15,899,754 members

Comments by Member 12150151 (Top 10 by date)

Member 12150151 2-Dec-15 6:34am View    
nope, it needs to take to the point where i press button stop, couse im sending that data to control my quadcopter, thank you for your logic, but as you can see im preety new to c# and forms
Member 12150151 1-Dec-15 9:21am View    
okey i done it, and whats happening now is that every time i hit stop button it shows the messege not finished, so now i cant finish
Member 12150151 1-Dec-15 9:08am View    
Deleted
nope, again just a bunch of errors
Member 12150151 1-Dec-15 8:58am View    
so i have done this:
public void freeze()
{
// update each button status

int SS = 8;
if (SS >= 1)
{
canStop = false;
foreach (Control btn in flpButtons.Controls)
{
if (btn is JoystickSample.Button)
{
((JoystickSample.Button)btn).ButtonStatus = jst.Buttons[((JoystickSample.Button)btn).ButtonId - 1];
}
}
canStop = true;
}
else
{
canStop = true;
}}


public static bool canStop;
public bool CanStop {get { return canStop; } }
}
}
and this:
private void buttonStop_Click(object sender, EventArgs e)
{
if (SerialPort.IsOpen)
{
freeze();
SerialPort.Close();
buttonStart.Enabled = true;
buttonStop.Enabled = false;
timerSending.Stop();

}
}


and it still freeze, have i done something wrong?
Member 12150151 1-Dec-15 8:47am View    
still getting this warning:
Error 1 Non-invocable member 'System.Windows.Forms.Layout.ArrangedElementCollection.Count' cannot be used like a method.