15,886,362 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 Python 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 GrooverFromHolland (Top 15 by date)
GrooverFromHolland
29-Dec-15 15:08pm
View
With the help of OriginalGriff I came to a working solution that I will post so others can profit,
Groover
GrooverFromHolland
29-Dec-15 13:06pm
View
You are absolutely right, I will try a different approach to get a list of USB-Serial devices.
Thank You for Your effort,
Groover
GrooverFromHolland
29-Dec-15 11:07am
View
If I check for null after searcher2.Get(), than I get an error: ManagementObjectCollection does not contain a definition for Where.
If I check for null after Cast<<managementobject>>() mo2 still is null.
Groover
GrooverFromHolland
28-Apr-14 12:02pm
View
Hi KM,<br>
From Your code it was not possible to know what control Rx-_Box could be. So I commented: Here RX_Box is RitchTextBox, not Listbox. ListBox is not normally. used to display messages. If You want to use ListBox just change it to: ListBox.Add(RxString).
GrooverFromHolland
27-Apr-14 7:27am
View
Hi Alan,
I never new there was a difference between value member and display member. This is very useful, not only for me but for many others.
In my original code I already have the two different Arrays with valueStrings, like this:
for (int i = 0; i < ComPortInformation.Count; i++)
{
listBox1.Items.Add(ComPortInformation[i].friendlyName +
" " + ComPortInformation[i].portName);
}
so implementing this is easy.
Thank You very much, answer accepted and a +5!
Groover
GrooverFromHolland
26-Apr-14 16:02pm
View
Hi Wes,
You gave me the idea, the last characters of my string are always numbers with a maximum of 255.
I can filter on that.
GrooverFromHolland
25-Dec-13 1:27am
View
Hi all,
Found a serious bug in my code!
If a invalid packet is received the program hangs in the data received event.
I forgot to check invalid packet.
I will update my code,
GrooverFromHolland
GrooverFromHolland
24-Dec-13 13:43pm
View
I have implemented my idea (reading byte by byte and when in sync read one packed of 19 bytes at once)in my project and tested it.
After opening serialport the first packet is incomplete the second is valid(reading byte by byte) and the rest reading full packet at once are all valid and processed in time.
running for 15 minutes at 6.3 packets of 19 bytes per second: no packets lost, all valid.
GrooverFromHolland
PS
I will submit my serial event code with comment after more testing at higher speed.
GrooverFromHolland
24-Dec-13 12:20pm
View
Hi Sergey,
Thank You for answering,
I started with SerialPort.Read(byte[]and store the result in a buffer but than it is difficult to stay synchronized with the start and end byte and stay in sync, as the stream comes continuously to the port, even before my application has started.
Maybe I can start with reading byte by byte until a full and valid packet has arrived and then start reading 19 bytes at once and continue reading bytes[] until a packet is not valid or incomplete and start over again reading byte by byte until in sync again.
occasionally loosing a packet is not a problem.
what do You think of this approach?
Anny one can comment on this,
GrooverFromHolland
GrooverFromHolland
8-Jun-13 3:59am
View
a +5 and solution accepted!
I'll post what I made of it and if You want please comment.
Thanks,
Groover.
GrooverFromHolland
7-Jun-13 15:43pm
View
Thank You Sergey,
I started with this for testing and it works, but for the real thing I am not using textboxes but values come from a database.
I will try with motor aray and valuearray.
GrooverFromHolland
24-Mar-13 15:18pm
View
It is no option to redesign my application (4000+ lines of code in this form only).
this is what my application is supposed to do:
The user fills in up to 50 controls every value is stored in a database table when finished.
if the user wants to modify a previous assignment the user clicks a button named modify assignment and a datagridview is filled with all previous assignments.
the user clicks in the datagridview to select the assignment to modify.
In this click event all relevant controls get a value from the database.
So far there is no problem!
Now I want to process all controls as if the user would do when the form is first filled.
It is designed that if the first control is handled the next relevant control is automatically focused and so on.
GrooverFromHolland
24-Mar-13 13:46pm
View
I know this is a terrible idea. But i do not know of another way to alter previous entered data in a form
and process the input in the same sequence.
GrooverFromHolland
24-Mar-13 13:41pm
View
It is the same form, it is processing the value in the control
and selecting the next control.
GrooverFromHolland
24-Feb-13 13:37pm
View
You are almost there.
MyImage = Image.FromFile(openFileDialog1.FileName);
panel1.BackgroundImage = MyImage;
Show More