Hello *,


I have an usercontrol with the following
lines of code:


private withevents LV as ListView
private withevents TV as TreeView




When I try to compile these lines I get the following error message, for the line with TreeView:
A module it not a valid type

Without that line the code can be compiled without an error message.

Any idea why I can´t declare a treeview control
with WithEvents inside an usercontrol

Thank´s
hannes