//Programmer: Janet Joy //Adding a mouse move event using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; namespace top_bottom { public partial class Form1 : Form { public Form1() { InitializeComponent(); this.MouseMove += new System.Windows.Forms.MouseEventHandler(this.Form1_MouseMove); } private void Form1_MouseMove(object sender, MouseEventArgs e) { this.Text = "X=" + e.X +" Y="+e.Y; } private void Form1_Load(object sender, EventArgs e) { } } }