Solved

How do I transfer the items in a ListBox in Form1 to a different ListBox in Form2 in C#?

Posted on 2016-10-06
2
43 Views
Last Modified: 2016-11-29
I am working on a Colour Blindness Test in which the user looks at different images and types i what they see. I Have arrays set up for the correct answers and the answers the user gives. the form1 is the actual test and accepts user input and puts their answers in order into an array which Is displayed in a list box in form one. In form2 there are two list boxes in which one holds the correct answers and the other is supposed to hold user answers. However, I'm having trouble making the Items of the listbox in form1 transfer to the corresponding list box in Form2.

Please Help!!!
Code Examples are much appreciated.
0
Comment
Question by:Alexander Hamilton
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 75

Accepted Solution

by:
käµfm³d   👽 earned 500 total points
ID: 41831942
I discuss ways to pass data between forms--not specifically ListBoxes, but you can extrapolate--in my article:

https://www.experts-exchange.com/articles/4322/How-to-Pass-Data-Between-Forms-in-NET.html
0
 
LVL 14

Expert Comment

by:frankhelk
ID: 41905421
No comment has been added to this question in more than 21 days, so it is now classified as abandoned.

I have recommended this question be closed as follows:

Accept: käµfm³d   👽 (https:#a41831942)

If you feel this question should be closed differently, post an objection and the moderators will review all objections and close it as they feel fit. If no one objects, this question will be closed automatically the way described above.

frankhelk
Experts-Exchange Cleanup Volunteer
0

Featured Post

NEW Veeam Agent for Microsoft Windows

Backup and recover physical and cloud-based servers and workstations, as well as endpoint devices that belong to remote users. Avoid downtime and data loss quickly and easily for Windows-based physical or public cloud-based workloads!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Wouldn’t it be nice if you could test whether an element is contained in an array by using a Contains method just like the one available on List objects? Wouldn’t it be good if you could write code like this? (CODE) In .NET 3.5, this is possible…
Performance in games development is paramount: every microsecond counts to be able to do everything in less than 33ms (aiming at 16ms). C# foreach statement is one of the worst performance killers, and here I explain why.
In this video, viewers are given an introduction to using the Windows 10 Snipping Tool, how to quickly locate it when it's needed and also how make it always available with a single click of a mouse button, by pinning it to the Desktop Task Bar. Int…
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…

624 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question