现在我进行Windows Mobile的开发,但是找不到专门的Windows Mobile开发的模块,因为语言用的是C#,所以就发到这儿来了,请大家见谅啊。
请看下面的代码: private void PictureBox1_MouseMove(object sender, MouseEventArgs e)
{
MenuItem tooltip = new MenuItem();
tooltip.Text = "图片";
ToolTipCM.MenuItems.Add(tooltip);
System.Drawing.Point point = new System.Drawing.Point(e.X,e.Y);
ToolTipCM.Show(PictureBox1,point);
}我的问题是:当我移动到pictureBox控件上时,不会触发该事件(我用了断点进行测试),但是当我在picturebox上拖动的时候,却能够触发该事件,这就糊涂了,请教。
请看下面的代码: private void PictureBox1_MouseMove(object sender, MouseEventArgs e)
{
MenuItem tooltip = new MenuItem();
tooltip.Text = "图片";
ToolTipCM.MenuItems.Add(tooltip);
System.Drawing.Point point = new System.Drawing.Point(e.X,e.Y);
ToolTipCM.Show(PictureBox1,point);
}我的问题是:当我移动到pictureBox控件上时,不会触发该事件(我用了断点进行测试),但是当我在picturebox上拖动的时候,却能够触发该事件,这就糊涂了,请教。
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货