Results 1 to 4 of 4

Thread: [2005][RESOLVED]WindowFromPointXY

Threaded View

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    May 2007
    Posts
    164

    [2005][RESOLVED]WindowFromPointXY

    Private Declare Function WindowFromPointXY Lib "user32" Alias "WindowFromPoint" (ByVal xPoint As Long, ByVal yPoint As Long) As Long

    Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick

    Dim ptx As Long = System.Windows.Forms.Cursor.Position.X
    Dim pty As Long = System.Windows.Forms.Cursor.Position.Y
    Dim OnhookWindow As Long = WindowFromPointXY(ptx, pty)
    If OnhookWindow <> Me.Handle Then
    DoSomething()
    End If
    End Sub

    i got the error message "Unmanaged code debugging" ? What is this?
    What Wrong With My Code?
    Last edited by edwinho; Jun 11th, 2007 at 05:38 AM.

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