custom list control

Posted on 2005-03-26
Medium Priority
Last Modified: 2010-04-17
anybody have an idea/sample code for creating a custom control as in the example below:


essentially, how do i customize the listbox or listview to display a collection of controls?
also, the collection of controls has to be databound, where each control represents a view of part of a row in a datatable...
a sample control with source would be amazing...

Question by:marvinklein
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
  • 2
  • 2
LVL 23

Accepted Solution

gecko_au2003 earned 200 total points
ID: 13637036
You would most likely have to make your own activex control that support and had built in all the features that you wanted which were :

* Collection of controls
* databound


Here is a site with simple activex controls etc :


www.pscode.com  <-- was mentioned in the above site, they have lots of examples :)

Here is a tutorial on making your own active x control and it explains the difference between an active x controls and active x components :)


I hope that gets you started :)

Author Comment

ID: 13637041

i realize i'm going to have to make a custom control...

but starting from scratch would be stupid.. i should definately inherit from listbox or listview controls...

i just haven't worked much with either of those controls...

oh, and this also has to be in vb.net
LVL 55

Assisted Solution

by:Jaime Olivares
Jaime Olivares earned 200 total points
ID: 13637071
I think the easiest way is to use an HTML control. It will allow you to use the same control in each "listbox item" (really a table) or different ones, according to item type.
LVL 23

Expert Comment

ID: 13637077
Might I suggest putting a pointer question from the vb.net area to here :) That way you might get more response :)

I have not really used vb.net that much but isnt there an ADO combo box ? See if you can insert images into the combo box using a image list and inserting text next into it ?

Otherwise if that does not work then inherit from one of the ado controls and just add functionality to insert images and have text that can be typed next to each image as you require. Then that way you wont have to add the ADO functionality when you inherit it from the listbox, unless there is an ADO listbox or something like that.

The above is just me thinking out a loud so if they do not work then I will just watch this Q as this would be interesting to find out exactly how it is done and I am very sorry I can not be of more help to you !

kind regards


Author Comment

ID: 13637107
i understand the principle... basically, it's just tedious and complicated to get everything just right...

somebody must have made a control like this before, and i'm really just looking for the code...

Featured Post

Get 15 Days FREE Full-Featured Trial

Benefit from a mission critical IT monitoring with Monitis Premium or get it FREE for your entry level monitoring needs.
-Over 200,000 users
-More than 300,000 websites monitored
-Used in 197 countries
-Recommended by 98% of users

Question has a verified solution.

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

In this post we will learn how to make Android Gesture Tutorial and give different functionality whenever a user Touch or Scroll android screen.
Make the most of your online learning experience.
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…

777 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