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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

This article is for Object-Oriented Programming (OOP) beginners. An Interface contains declarations of events, indexers, methods and/or properties. Any class which implements the Interface should provide the concrete implementation for each Inter…
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!
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

756 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