Solved

Displaying a Textbox inside a CheckedListBox

Posted on 2004-09-17
3
268 Views
Last Modified: 2008-02-01
I have a CheckedListBox that I add a simple class to (the class has a "Field" and "Label" properties) and I then set the ValueMember and Display.  This works great for add simple text to the CheckListBox but now I would like to add a new item that is a TextBox to the CheckedListBox so that the user can edit the value in the CheckedListBox and then check it.

Is there a quick way to do this?
0
Comment
Question by:hotshottools
3 Comments
 
LVL 96

Accepted Solution

by:
Bob Learned earned 125 total points
ID: 12103175
Yes, you could do something like this:

    Dim textBox1 As New TextBox
    textBox1.Text = "Test"

    Me.CheckedListBox1.Controls.Add(TextBox1)

You would have to keep the position of the textbox up-to-date when the CheckedListBox is scrolled.

Bob
0

Featured Post

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Summary Displaying images in RichTextBox is a common requirement with limited solutions available. Pasting through clipboard or embedding into RTF content only support static images.  This article describes how to insert Windows control objects int…
This article shows how to deploy dynamic backgrounds to computers depending on the aspect ratio of display
Along with being a a promotional video for my three-day Annielytics Dashboard Seminor, this Micro Tutorial is an intro to Google Analytics API data.
In a recent question (https://www.experts-exchange.com/questions/28997919/Pagination-in-Adobe-Acrobat.html) here at Experts Exchange, a member asked how to add page numbers to a PDF file using Adobe Acrobat XI Pro. This short video Micro Tutorial sh…

776 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question