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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T09:10:49+00:00 2026-06-17T09:10:49+00:00

I am trying to add each item from dropdownlist to label. Any guesses why

  • 0

I am trying to add each item from dropdownlist to label. Any guesses why it won’t work. Thanks for your answers.

Dim labels(2) As Label
Public Sub AddItemsFromDropdownlistToLabel()
    DefineLabels()
    'Add Items From Dropdownlist1 to three lables
    For Each item As Object In DropDownList1.Items
        If LabelCount < 3 AndAlso LabelCount > 0 Then
            labels(LabelCount).Text = item.ToString
        End If
    Next
End Sub
Public Sub DefineLabels()
    labels(0) = label1
    labels(1) = label2
    labels(2) = label3
End Sub
  • 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-17T09:10:50+00:00Added an answer on June 17, 2026 at 9:10 am

    Couple of problems

    1: Since you’re checking LabelCount>0 labels(0) will never be populated.

    2: You’ve not got anything incrementing for each item in the loop to advance the population of the labels array.

    3: Each item in your drop down is an instance of ListItem. To get a anything useful out of that, you’re best to use either item.Text or item.Value.

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

Sidebar

Related Questions

I'm trying add data triggers to the default combobox style so each text item
Trying to add an infobox to each pin, each pin is loaded from a
I am trying to add eventListener for each of the balls i created in
I am trying to add multiple markers each with its own infowindow that comes
Im trying to add a class to a each element in a collection. I
I am trying to add the value of each bar to my bargraph. I'd
I´m trying to add a shadow to a grouped UITableView (above each section) like
I'm trying to add an event listener to each icon on the map when
I am trying to select an item from a list view and it should
Im currently trying to get all input elements from a DIV. $([required]).each(function() { });

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.