Pber
asked on
SPY++ style application in VB.NET or C#
I building on the sample given to me by Idle_Mind in the related question. I'm trying to only get it to highlight and display main forms and dialogs and not the controls within a dialog.
i.e. If I were to spy on wordpad. I only want to see the main frame, but not the toolbar, ruler or the richtext window.
Is this possible, if so how?
I presume I would just do a check in the picturebox1_Movemove event and do a check in the following routine:
i.e. If I were to spy on wordpad. I only want to see the main frame, but not the toolbar, ruler or the richtext window.
Is this possible, if so how?
I presume I would just do a check in the picturebox1_Movemove event and do a check in the following routine:
If Not handle.Equals(prevHandle) Then
' get new rectangle
GetWindowRect(handle, prevRC)
' draw new rectangle
ControlPaint.DrawReversibleFrame(New Rectangle(prevRC.Left, prevRC.Top, prevRC.Right - prevRC.Left, prevRC.Bottom - prevRC.Top), Color.Black, FrameStyle.Thick)
End If
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Looks good...does it work? =)
ASKER
Yeah, it works awesome. I also added a check to ignore itself:
If MainWindow <> Me.Handle Then
end if
Thanks again.
If MainWindow <> Me.Handle Then
end if
Thanks again.
ASKER
Thanks again.
BTW...I like the way you did your profile. ;)
ASKER
Thanks. (:
Just noticed a bug. The Blog enum doesn't compile. Fixed it with a constant.
(:
Just noticed a bug. The Blog enum doesn't compile. Fixed it with a constant.
(:
ASKER
Open in new window