Solved

Displaying a Textbox inside a CheckedListBox

Posted on 2004-09-17
3
250 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
Comment Utility
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

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

IP addresses can be stored in a database in any of several ways.  These ways may vary based on the volume of the data.  I was dealing with quite a large amount of data for user authentication purpose, and needed a way to minimize the storage.   …
For those of you who don't follow the news, or just happen to live under rocks, Microsoft Research released a beta SDK (http://www.microsoft.com/en-us/download/details.aspx?id=27876) for the Xbox 360 Kinect. If you don't know what a Kinect is (http:…
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

728 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

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now