Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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 ConnectFourGUI
- {
- public partial class Form1 : Form
- {
- public Form1()
- {
- InitializeComponent();
- }
- private void Form1_Paint(object sender, PaintEventArgs e)
- {
- Bitmap bm = new Bitmap("C:\\logo.png");
- for (int i = 0; i < 6; i++)
- {
- for (int j = 0; j < 7; j++)
- {
- e.Graphics.DrawImage(bm, new Rectangle(j * bm.Width, i * bm.Height, ClientRectangle.Width / 7, ClientRectangle.Height / 6));
- }
- }
- }
- private void Form1_ClientSizeChanged(object sender, EventArgs e)
- {
- this.Invalidate();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement