0% found this document useful (0 votes)
29 views25 pages

Match Game

The document provides steps to create a match game using Windows Forms in C#. It describes adding controls like labels, buttons and a timer to the form and coding the logic for assigning random images, detecting clicks, and checking for a winner.

Uploaded by

M K Khaing
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
29 views25 pages

Match Game

The document provides steps to create a match game using Windows Forms in C#. It describes adding controls like labels, buttons and a timer to the form and coding the logic for assigning random images, detecting clicks, and checking for a winner.

Uploaded by

M K Khaing
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 25

Match game

1. New Project – Windows Forms Application

2. Windowform - Width 550, Height 550

1
3. Toolbox – All windows form – TablelayoutPanel

2
4. TableLayoutpanel select- Dock - Fill

3
5. Backcolor- Web - CornflowerBlue

4
CellBorderStyle – inset

6. Edit Rows and Columns

5
7. Edit Column – Add button click – Percent – 25%

6
Edit Rows

7
8. Label

8
Properties- Autosize – False, Dock- Fill

Text algin – Middle Center

9
9. Font – Webdings, size- 72 , Bold –True, GdiCharSet- 0

10
10. Text- c

11. Copy fill

11
12. Form1.cs right click – view code click

12
13
13. AssignmentIconsToSquare()

14
Final AssignIconsToSquare()

Test - Fn+f5

15
14. Design Form – All image select – ForeColor – web –
CornFlowerBlue

16
15. All image select - Properties- event Tab- Click-
label_Click

16. Label_click()

17
Label_click code

Test fn+f5

18
Click

19
17. Second click code

20
21
18. ToolBox – Timer

Properties- interval -750

22
19. Event – Tick

Tick double click

Fill Code – timer1_Tick( )

23
20. Fill code

21.CheckForWinner() & messagebox code

24
22.Add code- checkforwinner();

Test fn+f5

25

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy