Hello,
I have a treeview, groupbox with some controls, and a datagrid on a form.
The treeview is on the left of the form, the groupbox is at the top of the
form, and the datagrid is below the groupbox and to the right of the
treeview. When I use the Datagrid1.PointToScreen(New Point(e.X, e.Y)) inside
the datagrid mousedown event, the point is always the width of the treeview
to the right of where I click and the height of the groupbox below where I
click. I guess I could nudge this by adjusting the X and Y of the point, but
that doesn't seem like the best way to handle this. What am I missing?
Seems like it should return the right point no matter what controls are on
the screen. Any help is appreciated.
Thanks