Solved

Displaying a Textbox inside a CheckedListBox

Posted on 2004-09-17
3
287 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

SharePoint Admin?

Enable Your Employees To Focus On The Core With Intuitive Onscreen Guidance That is With You At The Moment of Need.

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…
A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…
This video shows how to use Hyena, from SystemTools Software, to update 100 user accounts from an external text file. View in 1080p for best video quality.

710 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