私のフォーム階層は次のようなものです。
Form -> TableLayoutOne -> TableLayoutTwo -> Panel -> ListBox
ListBoxのMouseMoveイベントには、次のようなコードがあります。
Point cursosPosition2 = PointToClient(new Point(Cursor.Position.X, Cursor.Position.Y));
Control crp = this.GetChildAtPoint(cursosPosition2);
if (crp != null)
MessageBox.Show(crp.Name);
MessageBoxには「TableLayoutOne」が表示されますが、「ListBox」が表示されると思います。私のコードのどこが間違っていますか?ありがとう。