Results 1 to 4 of 4

Thread: Mouse over activex... Please help...

  1. #1

    Thread Starter
    Hyperactive Member New to VB 6's Avatar
    Join Date
    Apr 2002
    Posts
    362

    Question Mouse over activex... Please help...

    I am trying to design an activex control that can detect if the mouse is over the control and also detect if the mouse is off the control.

    I have tried hittest and mousemove but I'm not really expierianced enough to know what I'm doing.

    could someone please help me.
    [VBCODE]
    Option Explicit
    Dim XXX As Porn
    Dim Wife As Nag

    Private Sub *****_Resize()
    On Error Resume Next
    Get Viagra
    End Sub
    [/VBCODE]

  2. #2
    Evil Genius alex_read's Avatar
    Join Date
    May 2000
    Location
    Espoo, Finland
    Posts
    5,538
    You can write code under the Mousemove event I think it's called (could be mouseover - something along those lines), then check the X and Y values (accepted parameters of the event) against the left, top, width and height (or controlwidth & controlheight I think they're called with user controls) to check the cursor position in relation to the form...

    i.e.

    If X < me.left Then....

    Please rate this post if it was useful for you!
    Please try to search before creating a new post,
    Please format code using [ code ][ /code ], and
    Post sample code, error details & problem details

  3. #3
    Hyperactive Member csar's Avatar
    Join Date
    Mar 2002
    Location
    Siam
    Posts
    288
    It's not work..??
    Don't leave it till tomorrow, Do It Now!
    5361726176757468204368616E63686F747361746869656E

  4. #4
    Super Moderator manavo11's Avatar
    Join Date
    Nov 2002
    Location
    Around the corner from si_the_geek
    Posts
    7,171


    Has someone helped you? Then you can Rate their helpful post.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width