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 Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Mouse-Pointer change while moving over a Form/Grid

Status
Not open for further replies.

ALS

Programmer
Oct 16, 1998
5
DE
I like to have a different mouse-pointer while it's over a Grid on the form.<br>
Changing when I coming from grid to form I solve by "DBGrid.Mouse Move"<br>
<br>
Changing back when I coming from grid to Form is there any better way to do as using "Form.MouseMove" ??<br>
<br>
The reason, I have several controlls on the form absolutely next to the grid, this mean I have to do it everywhere.<br>
<br>
Is there any event like "MouseLeave" ????<br>
maybe someone can help me :))) <br>
<br>
Changing
 
If I understand what you are trying to do you can simply set the property of each control to display a different icon for the mouse when it is over the control. On your dbgrid control look at the mousepointer property and set it to what ever icon you want (at design time or run time)
 
ALS,<br>
<br>
Unfortunately, there is _not_ a MouseLeave - though I wish there were! - or similar event, at least not through VB 5.0. VB 6.0 may have it, but I doubt it. Afraid you'll have to accept using a lot of code unless you can create a user-defined control and generate your own MouseLeave property/event.<br>

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top