Solved

Displaying a Textbox inside a CheckedListBox

Posted on 2004-09-17
3
277 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

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

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

Recently while returning home from work my wife (another .NET developer) was murmuring something. On further poking she said that she has been assigned a task where she has to serialize and deserialize objects and she is afraid of serialization. Wha…
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

856 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