Maybe you can teach me some VB. It took me a few hours to figure out that I couldn't use AddressOf for functions which were members of a form. Instead I had to declare a module which did the AddressOf internally. Also what does subclass my own form window mean?Originally Posted by frodobaggins
I couldn't find another way to do it, other then intercepting WinProc and waiting for the WM_POWERBROADCAST message-at least in VB 6.0. What have you found out?