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!
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!