您的位置:首页 > 编程语言 > C#

浅析c#中如何在form的webbrowser控件中获得鼠标坐标

2013-07-31 10:26 691 查看

private void timer1_Tick(object sender, EventArgs e)
        {
            if (webBrowser1.Bounds.Contains(this.PointToClient(Cursor.Position)))
            {

                this.toolStripStatusLabel1.Text = webBrowser1.PointToClient(Cursor.Position).ToString();
            }
        }
    }
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
相关文章推荐