Convert a CustomControl to a ListView

E

Etienne

I have a form with 12 ListView doing basically all the
same thing with some change... I wrote a class containing
a variable withevents of type ListView. I process the
events in this class, so that I don't have to right all
the MouseDown, OLEDragDrop, OLEStartDrag events for all
the 12 controls (wich mean 12 * 3 = 36 function to modify
if I make an error).

The problem is that the ListViews contained in the form
are contained in CustomControl variables. So when I try
to assign the CustomControl variable to the ListView
object, it doesnt work (type mismatch). But if I use a
CustomControl in my class, the CustomControl doesn't have
the events like OLEDragDrop etc. So it doesn't catch
those events.

So I would need to have a way to make my ListView variable
link to the CustomControl variable in the form to trap the
events.

Thanks!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top