Testing Where Checkbox was clicked

  • Thread starter Thread starter John Smith
  • Start date Start date
J

John Smith

Hey folks,

Does anyone know if it's possible for me to determine on a checkbox's
checkedchanged event whether the actual box was clicked or if it's text was
clicked?

I know with DataGrids you can do that whole HitTestInfo stuff and determine
if the rowheader was clicked or a cell...Can you do something similar with
checkbox? And if so, how?

Thx
 
Nevermind. I got it:
Point ptCursor = Cursor.Position;

ptCursor = PointToClient(ptCursor);

if(ptCursor.X > (checkBox1.Location.X + 22))

:

:
 
Back
Top