
{filelink=16690}
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
public class LesImages : Form
{
private Bitmap[] mesImages = new Bitmap[6];
public LesImages() {
mesImages[0] = new Bitmap("image1.bmp");
mesImages[1] = new Bitmap("image2.bmp");
mesImages[2] = new Bitmap("image3.bmp");
mesImages[3] = new Bitmap("image4.bmp");
mesImages[4] = new Bitmap("image5.bmp");
mesImages[5] = new Bitmap("image6.bmp");
}
protected void OnPaint(PaintEventArgs e) {
Graphics g = e.Graphics;
int décalage = 10;
foreach (Bitmap b in mesImages) {
g.DrawImage(b, 10, décalage, 90, 90);
décalage += 100;
}
}
public static void Main() {
Application.Run(new LesImages());
}
}