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))

:

:
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top