Sinon sans contrôle ( si j'ai bien compris ce que tu veux faire ) :
public partial class Form1 : Form
{
PictureBox pb = null;
Bitmap bmp = new Bitmap( "C:\\untitled.bmp" ); // Pour l'exemple.
public Form1( )
{
InitializeComponent( );
this.Size = new Size( 640, 480 );
pb = new PictureBox( );
pb.Parent = this;
pb.Size = new Size( 400, 400 );
pb.Location = new Point( 20, 20 );
pb.Image = bmp;
pb.MouseMove += delegate ( object sd, MouseEventArgs args )
{
pb.Invalidate( pb.ClientRectangle );
};
pb.Paint += delegate ( object sd, PaintEventArgs args )
{
Point pos = pb.PointToClient( Cursor.Position );
if ( pb.ClientRectangle.Contains( pos ) )
{
Graphics g = args.Graphics;
g.DrawImage( bmp, pos.X, pos.Y, 100, 100 );
g.DrawRectangle( Pens.Black, pos.X, pos.Y, 100, 100 );
}
};
}
}