创建一个枚举:
public enum ObjectType
{
    Screen,
    KeyBoard,
    MainBoard,
    //...其他自行添加}创建一个方法:
private ObjectType HitTest(Point clientMousePoint)
{    ...// 做你的处理    //return (一个有效的 ObjectType 值);
}在 Click 事件中处理:(其他鼠标事件也可使用)
private void Click(object sender, EventArgs e)
{
    Point p = this.PointToClient(Control.MousePosition);
    ObjectType obj = this.HitTest(p);
    switch (obj)
    {
        case ObjectType.Screen:
            MessageBox.Show("You have clicked on the Screen");
            break;        case ObjectType.KeyBoard:
            MessageBox.Show("You have clicked on the KeyBoard");
            break;        case ObjectType.MainBoard:
            MessageBox.Show("You have clicked on the MainBoard");
            break;        // ... 其他的选项自行添加        default:
            MessageBox.Show("Can't judge.");
            break;
     }
}不知道是不是你想要的?