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 6602809
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T18:55:18+00:00 2026-05-25T18:55:18+00:00

I am working on a project with a total of 6 forms. One form

  • 0

I am working on a project with a total of 6 forms. One form is the main form and the other 5 are part of its option menu. The forms on the options menu are for changing settings and modifying data that is used in the main form.

For example, user clicks on option to change settings, new form pops up with the current settings, then user can modify the settings and apply the changes. When the user returns to the main form the settings should be changed.
What I would like to do is send the current settings data from the main form into the components of the new form, after the user applies the changes and closes the new form the data is sent and updates the main form’s components.

One Specific case I am trying to do is put data into a listbox on the other form from an arrayList created and initialized in the main form. I have been trying code like this example:

string data = somestring;
newForm.Controls[2].Add(data);

But I do not seem to have access to methods like Add and Insert for newForm.Controls[2], so the code fails.

My other thought was to create a method in the new form and send the data to it that way, but the method is not recognized as existing in the main form. I get this error:

'System.Windows.Forms.Form' does not contain a definition for 'AddToList'
  • 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-25T18:55:18+00:00Added an answer on May 25, 2026 at 6:55 pm

    To send data what you can do is in the constructor of your option form, take in parameters.

    eg

    class OptionForm : Form
    {
        public OptionForm(string data)
        {
            //put your data in to the form
        }
    }
    

    Then, the simplest method to get data back out is to include public properties in your OptionsForm class containing whatever information you need.

    In fact, with the public properties, you could also set the properties this way.

    Hope this is what you meant

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm working on a project where I need to get the total row count
While working a project tonight, I ended up using one .js resource file for
I am working on a project in C# to create a forms application. I
im working on a project that is calculating the total population for given countries
We're working on a Flash CS4 project where the main .fla file has ballooned
First of all: I'm total beginner.in COM. I'm working in team on big project.
I working on project and have problem with threading and update of UI. I
I'm working on project that lets users choose some scientific authors and columnists and
I am working a project with many NUnit tests, that were already written long
I am working on project -online file management where we have to tore file

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.