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
13 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
2 Comments
 
LVL 74

Accepted Solution

by:
käµfm³d   👽 earned 500 total points
Comment Utility
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 13

Expert Comment

by:frankhelk
Comment Utility
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

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

This document covers how to connect to SQL Server and browse its contents.  It is meant for those new to Visual Studio and/or working with Microsoft SQL Server.  It is not a guide to building SQL Server database connections in your code.  This is mo…
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

762 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

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now