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
36 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

Revamp Your Training Process

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action.

Question has a verified solution.

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

Suggested Solutions

Many of us here at EE write code. Many of us write exceptional code; just as many of us write exception-prone code. As we all should know, exceptions are a mechanism for handling errors which are typically out of our control. From database errors, t…
Entity Framework is a powerful tool to help you interact with the DataBase but still doesn't help much when we have a Stored Procedure that returns more than one resultset. The solution takes some of out-of-the-box thinking; read on!
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

751 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