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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T13:57:22+00:00 2026-06-17T13:57:22+00:00

My checked list box has 200 thing that will need to be converted into

  • 0

My checked list box has 200 thing that will need to be converted into an index. This index will have to work across two forms. So dealing the variable in a modular will be a logical action. However in the modular the checked list box does not exist and therefor i get an error. what im trying to achieve is to have colors change on selected text boxes wit hte flowing

Select Case Row
                Case 0
                    TxtA1.BackColor = Color.Red
                Case 1
                    TxtA2.BackColor = Color.Red
                Case 2
                    TxtA3.BackColor = Color.Red
                Case 3
                    TxtA4.BackColor = Color.Red
                Case 4
                    TxtA5.BackColor = Color.Red
               ...
               case 200
                    TxtB67.BackColor = Color.Red
                  end select 
  • 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-06-17T13:57:23+00:00Added an answer on June 17, 2026 at 1:57 pm

    1.) In a module, you can access all forms and its public members, e. g. with Form1.CheckedListBox1. Or Form1.Controls("CheckedListBox1")
    2.) When programmers do monotonous, repetitive work over 201 cases, something is wrong. You should think of another way to map the checked indices with those labels. You can use the name itself or the Tag property to iterate over them (e. g. Form1.Controls("txtColored_" & i.ToString) in a loop) (although there are still much better solutions, depending on the details of your design).
    3.) You might probably want to reset the color from a Label if it is not selected, in this case you will have to set the color for every Label in each of the 201 cases.

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

Sidebar

Related Questions

If I have Checked list box in Win forms which I fill like this
I have a list box and i am trying to get currently checked item
I have a list box that contains a set of of PathItems. I have
I have a list of items that have checkboxes associated with them, and the
I need to seperate the checked and unchecked check box from set of check
I'm after a small jQuery script that will check the appropriate check box based
I have a simple treeview. The itemtemplate has a check box. When the checkbox
I have a listbox in which the item source contains a List(of T) that
I have a database of people and shirts. Each person has specific shirts that
i am using asp.net c# jquery vs 2008 I have two check box list

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.