Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6617901
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T20:45:35+00:00 2026-05-25T20:45:35+00:00

I have a small application that has several checkboxes, a submit button, and a

  • 0

I have a small application that has several checkboxes, a submit button, and a textbox. I want the user to be able to check what they want, click the submit button, and have the results display in the textbox. The application runs but instead of the values displaying I get “System.Collections.Generic.List`1[System.String]” displayed in the textbox. I am very new to this and would appreciate any help. My code is as follows…

namespace MY_App
{

public partial class Form1 : Form
{

    public Form1()
    {
        InitializeComponent();
    }

    List<string> ls = new List<string>();

    private void Checkbox1_CheckedChanged(object sender, EventArgs e)
    {
                ls.Add( "P.C. ");
    }

    private void Checkbox2_CheckedChanged(object sender, EventArgs e)
    {
            ls.Add( "WYSE Terminal" );
    }

    private void Checkbox3_CheckedChanged(object sender, EventArgs e)
    {

        ls.Add("Dual Monitors "); 
    }

    private void button1_Click(object sender, EventArgs e)
    {
        string line = string.Join(",", ls.ToString());
        textBoxTEST.Text = line;

    }

    private void textBoxTEST_TextChanged(object sender, EventArgs e)
    {

    }
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T20:45:35+00:00Added an answer on May 25, 2026 at 8:45 pm

    You are trying to concat the object name, because of ls.ToString() will returns exactly what you’ve got in your TextBox.

    Instead, use the following:

    string line = string.Join(",", ls.ToArray());
    textBoxTEST.Text = line;
    

    Also, here is Linq solution:

    ls.Aggregate((i, j) => i + ","+ j)
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've got a small Cocoa problem. I have a StatusBar application that has an
My application has a restricted access. I have a user/password box in a small
I have a small LAMP application that I want to move to Amazon I
So I have built a small application that has a physics engine and a
I have a small application that manages several git repositories similar to Github/Gitorious. Github
I have a small application that has a message only WTL window which does
I have a small program that has several checkedboxlists in VS2010. I wanted to
I have a small web application that has multi-language support (en, de, it, fr,
I have made a small java swing application that I want to share with
I have a small application that I am building a Chat application into, so

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.