2012-05-16 18 views

回答

2

是的。您必須在鼠標位置旁邊使用標籤。只需嘗試以下代碼:

private void pictureBox1_MouseEnter(object sender, EventArgs e) 
     { 
      pictureBox1.Cursor = Cursors.WaitCursor; 
      Label lb = new Label(); 
      lb.Location = new Point(MousePosition.X-this.Left,MousePosition.Y-this.Top); 
      lb.Text = "Your Info"; 
      this.Controls.Add(lb); 

     }