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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T20:16:16+00:00 2026-05-12T20:16:16+00:00

I have a text box that is going to be populated with a comma

  • 0

I have a text box that is going to be populated with a comma spereated list that is driven by a CheckedListBox control.

The idea is that as the user checks items off in the list, they will appear in the text field above. I have this working to the point where if I check an item and then click somewhere else inside the control then the text ends up in the textbox. I am capturing the click event on my control.

If I use the item_checked event then the list in the text box isn’t updated until I check a second item (at which point in time only the first item that was checked is displayed in the text box.) Is there anyway around this? Reading on MSDN doesn’t seem to show any other events that would be applicable.

I’m using .net 1.1.

This is the method that is run on the event trap.


Private Sub FillCheckedTagsTextBox()

    txtSelectedTags.Text = ""

    Dim tagChecked As Object

    For Each tagChecked In cltTagSelection.CheckedItems

        txtSelectedTags.Text = txtSelectedTags.Text + tagChecked.ToString() + ", "

    Next

End Sub

Thanks,
Mike

  • 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-12T20:16:17+00:00Added an answer on May 12, 2026 at 8:16 pm

    Ouch 1.1? Is your employer trying to kill you? I’d try to push up to 2.0 if I could.

    To double check when you say the “Checked” event do you mean CheckedChanged? In 2.00 this works fine on desktop. Is it a bug in 1.1?

    If it is a bug (check your own code first before deciding this! Then check it again!) then I can suggest trying to capture the Leave event which occurs when a control loses focus. Failing this you could databind a business object to the .Checked property and then fire your own event when your value changes. E.G.

    public class MyValues
    {
        private bool _check;
    
        public bool Check
        {
            get
            {
                return _check;
            }
            set
            {
                if(_check != value)
                {
                    _check = value;
                    // todo: raise event!
                }
            }
        }
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an ASP.NET user control that contains a text box control and a
I want to have a text box that the user can type in that
I have a text box that is going to be validated in JavaScript upon
I currently have a text box in a program where the user can input
I have a label that holds a value and a text box into which
I have a text box in wxpython (see below) that stores the name of
i have a text box where the user will the url in it and
I have a windows forms app with a textbox control that I want to
I have an extender control that raises a textbox's OnTextChanged event 500ms after the
I have a composite control that adds a TextBox and a Label control to

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.