Re: TreeView and WithEvents
Check if you have added the component to your usercontrol (right click on toolbar, add microsoft windows common controls 6.0)
Special thanks to Lothar "the Great" Haensler, Tom Archer, Chris Eastwood, Bruno Paris and all the other wonderful people who made and make Codeguru a great place. Come back soon, you Gurus.
Re: TreeView and WithEvents
In Visual Basic 5 and 6, a code module cannot be an event sink so therefore you cannot dim anything WithEvents in a .bas module.
Try adding a global class module (.cls) and put the declaration in there. You can instantiate that class from the main .bas if you wish.
HTH,
Duncan
-------------------------------------------------
Ex. Datis: Duncan Jones
Merrion Computing Ltd
http://www.merrioncomputing.com
Check out the new downloads - EventVB.OCX for adding new events to your VB form and adding System Tray support simply, MCL Hotkey for implemenmting system-wide hotkeys in your application...all with source code included.
Re: TreeView and WithEvents
Yes, the first thing you need to check is the component. Then try this:
Private WithEvent LV as MSComctlLib.ListView
Regards,
Michi
MCSE, MCDBA
Re: TreeView and WithEvents