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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T22:07:59+00:00 2026-05-20T22:07:59+00:00

I recently moved from Visual Basic 6 to C# 2010 .NET. In Visual Basic

  • 0

I recently moved from Visual Basic 6 to C# 2010 .NET.

In Visual Basic 6 there was an option to put how many control arrays you would like to use by changing the “index” on it.

I am wondering if this is possible in C#, if so how would I go about doing it with a class like:

func fc = new func();

But with more than just one array in fc, is this possible?

And to be more clarified,

Visual Basic 6 when you load a control like a text box or user control it has in the properties window a option for “Index” and if you change that to 0, 1, etc… it’ll allow you to use all of those indexes, without loading multiple controls 50 times.

I think it might have something to do with an arraylist but I’m not entirely sure.

Thanks for any help.

  • 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-20T22:08:00+00:00Added an answer on May 20, 2026 at 10:08 pm

    That code snippet isn’t going to get you very far. Creating a control array is no problem, just initialize it in the form constructor. You can then expose it as a property, although that’s generally a bad idea since you don’t want to expose implementation details. Something like this:

    public partial class Form1 : Form {
        private TextBox[] textBoxes;
    
        public Form1() {
            InitializeComponent();
            textBoxes = new TextBox[] { textBox1, textBox2, textBox3 };
        }
    
        public ICollection<TextBox> TextBoxes {
            get { return textBoxes; }
        }
    }
    

    Which then lets you write:

    var form = new Form1();
    form.TextBoxes[0].Text = "hello";
    form.Show();
    

    But don’t, let the form manage its own text boxes.

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

Sidebar

Related Questions

I've recently moved from VB6 to VB.NET and I am finally getting there with
I've recently moved from MSSQL to MySQL. I would like to use a table
I am currently using ASP.NET MVC 2.0 RC2, having recently moved from version 1.0.
I recently moved my asp.net appliaction from windows 2003 / IIS 6 to windows
I recently moved to Visual Studio 2010 and upgraded my website to work with
We recently moved from SVN to Git, but there's a single legacy branch that
We have recently moved from VS 2008 to VS 2010. With that my applications
I've recently moved from [Windows 2003-32 bit, IIS 6 .NET 2.0] to [Windows 2008-64
I recently moved from mysql_ functions to PDO, and there is something i can't
I recently moved from a asp.net host to a PHP host. I am trying

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.