Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

MouseLeave event on windowless control

Status
Not open for further replies.

CP60

Programmer
Oct 16, 2008
145
DE
While looking for a simple an easy method to capture a MouseLeave event on a Windowless control, such as a VB.Label (no Hwnd, therefore API WindowFromPoint() doesn't work) I ran accross this from Karl E. Peterson and thought it was pretty neat, and the next best thing outside of sticking the label into a frame and capturing it's mouse move event.

Maybe it's already a well known method to some, but it was new to me and I thought it to be a clever idea.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top