15,913,773 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 Member 15070471 (Top 11 by date)
Member 15070471
31-Aug-23 10:50am
View
Adding the entire list to the form class solved the problems. Many thanks for your help.
Member 15070471
31-Aug-23 7:43am
View
Thank you for your suggestion of creating a class for the list of different data types. I've added the code above which I think is correct, just trying out the different methods. There may be better ways but I can at least, add and remove individual products as well as retrieve individual values. Unfortunately, I cant figure out how to access each of these from a different class. The most frequent error is being unable to access a non shared event or class. But when I share it, the error is, cant create list commands in a shared event. Is the code basically wrong, or am I trying to access the class incorrectly. Many thanks for your help.
Member 15070471
27-Aug-23 3:32am
View
Thank you for this. It helped. Can you please explain how the Accept Solution works? I got a lot of help from OriginalGriff above and now from you. But the first post wasnt complete so I didnt wany to finalise it then. Whats the accepted procedure? You guys are so helpful I'd like to get it right.
Member 15070471
26-Aug-23 20:19pm
View
Hi, I posted an update on my code in the solution area below. I hope thats correct as I couldn't see how else to do it. Thanks
Member 15070471
25-Aug-23 20:07pm
View
Thank you for your suggestions and I'm sure they would be suitable, but they are a bit more advanced than I was looking for so I'll try the above method first and see if I come right. Thanks again.
Member 15070471
25-Aug-23 20:05pm
View
Thank you for your ideas, I fully understand the logic now and I have implemented the List which is working. I've also got the Rectangle.Contains method working, but now I've lost the persistent rectangle ability. It was quite a chnage from my original idea and not so simple for me, but I'm still working on it and I'll see how I go and revert. Thanks again.
Member 15070471
21-Aug-23 18:48pm
View
As you suggest, I think I have the answer from Dave. It can't be done easily. But as I mentioned above, it seemed impractical to redo this in the main form each time and I was hoping for a way to reuse the same easily understandable code. I'll keep researching and learning. Thank you for your replies.
Member 15070471
21-Aug-23 11:33am
View
You guys are great, thank you so much. I can see now what I missing. (Question is, why the heck did I not see it before lol)
Member 15070471
27-Jun-23 7:07am
View
lol, thank you, I've never really understood the relationship between the two, but your analogy makes it clear.
Member 15070471
26-Jun-23 18:50pm
View
Thank you Richard, that game me the correct value
Member 15070471
26-Jun-23 18:48pm
View
Thank you. On running the code and checking the error, the number of bytes in the buffer was 65536.
Changing the RecieveBufferSize to 65536 fixed the problem. Still not sure why every example I downloaded had the same error though. Perhaps a chnage in .Net from older versions or something?
Show More