私は、目として2つの円とそれに2つの目玉を作成しました。私はカーソル移動でこれらの眼球を動かしたい。私は何をすべきか? お願いします!カーソルの移動に合わせて眼球を作る方法は?
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace nighat_google
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void Form1_Paint(object sender, PaintEventArgs e)
{
SolidBrush s=new SolidBrush(Color.Black);
e.Graphics.DrawEllipse(Pens.Red, 50, 50, 100, 100);
e.Graphics.DrawEllipse(Pens.Red, 170, 50, 100, 100);
e.Graphics.FillEllipse(s, 90, 50, 20, 20);
e.Graphics.FillEllipse(s, 210, 50, 20, 20);
}
}
}