T
tclancey
Thanks for the information provided so far for this problem, I don't seem to
be able to implement this as I would like to. I'm probably doing something
particularly stupid!
I've added a PreFilterMessage Sub to the Application Events, I want to get
any keyboard or mouse click throughout the entire application, when I get
one I want to start a timer.
All the examples I can find on the web say I should add
Application.AddMessageFilter(Me) to the main form load event.
When I do this I get a run time error:
Unable to cast object of type 'MyApp.Form1' to type
'System.Windows.Forms.IMessageFilter'.
Can anyone show me the error of my ways? !
Cheers,
Tull.
be able to implement this as I would like to. I'm probably doing something
particularly stupid!
I've added a PreFilterMessage Sub to the Application Events, I want to get
any keyboard or mouse click throughout the entire application, when I get
one I want to start a timer.
All the examples I can find on the web say I should add
Application.AddMessageFilter(Me) to the main form load event.
When I do this I get a run time error:
Unable to cast object of type 'MyApp.Form1' to type
'System.Windows.Forms.IMessageFilter'.
Can anyone show me the error of my ways? !
Cheers,
Tull.