16,017,307 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View .NET questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
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.
Member 12150151
1-Dec-15 7:13am
View
okey i resolved the problem, and the last one i cant resolve is this warning:
Error 1 'System.Windows.Forms.Control' does not contain a definition for 'Count'
Member 12150151
1-Dec-15 4:44am
View
when i try to apply this your code, i just get a bunch of errors:
Error 24 'JoystickSample.frmMain.btn' is a 'field' but is used like a 'type' C:\Users\suni\Desktop\jd2-ovaj radi\JoystickSample\frmMain.cs 131 17 JoystickSample
Error 25 'JoystickSample.frmMain.btn' is a 'field' but is used like a 'type' C:\Users\suni\Desktop\jd2-ovaj radi\JoystickSample\frmMain.cs 133 41 JoystickSample
Error 21 'JoystickSample.frmMain.SS' is a 'field' but is used like a 'type' C:\Users\suni\Desktop\jd2-ovaj radi\JoystickSample\frmMain.cs 126 9 JoystickSample
Error 16 Invalid token '-' in class, struct, or interface member declaration C:\Users\suni\Desktop\jd2-ovaj radi\JoystickSample\frmMain.cs 133 111 JoystickSample
Error 7 Invalid token 'is' in class, struct, or interface member declaration C:\Users\suni\Desktop\jd2-ovaj radi\JoystickSample\frmMain.cs 131 21 JoystickSample
Error 20 The type or namespace name 'var' could not be found (are you missing a using directive or an assembly reference?) C:\Users\suni\Desktop\jd2-ovaj radi\JoystickSample\frmMain.cs 125 5 JoystickSample
and so on
Member 12150151
30-Nov-15 12:37pm
View
i get that, but i have to know if somehow i can hit stop butten and stop sending after it send all data
Member 12150151
30-Nov-15 12:08pm
View
yes i have, and i still cant find a solution
Member 12150151
30-Nov-15 11:39am
View
thank you, i used sending(null, null); and timer and it works.
Show More