GAD04
GAD04
Mumbai
GAD(22034)
A
MICRO-PROJECT
ON
Submitted by:
Submitted to:
1
CERTIFICATE
curriculum.
HOD PRINCIPAL
2
INDEX
Sr.No Page
Title
. No.
1. Acknowledgement 4
2. Abstract 5
3. Introduction 6
4. Computer System Used 7
Code 8-18
5. Program
Output 19-21
6. Conclusion 22
7. Reference 23
3
ACKNOWLEDGEMENT
I would also like to thank my parents who have helped with their
valuable suggestions and provided the required resources
needed for the micro-project.
4
ABSTRACT
In this project, I’ve created a Tic Tac Toe game GUI interface
using Vb.net language by applying coding and drag and drop
methods.
5
INTRODUCTION
A Graphical User Interface (GUI) is a digital interface in
which a user interacts with graphical components such as icons,
buttons, and menus. In a GUI, the visuals displayed in the user
interface convey information relevant to the user, as well as
actions that they can take.
6
SIGNIFICANCE OF PROJECT
First I’ve have created Tic Tac Toe game. I’vehave used various
websites so as to gather the information of gui applications and
applied them in our project as per the project requirement and
use.
SCOPE OF PROJECT
I’ve developed the project such that the Tic Tac Toe game . In
this game two players plays the game. For ex. Player 1 and
Player2.
2.Web browsers.
HARDWARE EQUIPMENTS
1. Personal laptop.
7
PROGRAM CODE
Public Class Form1
12
If (Button7.Text = "O" And Button8.Text = "O" And Button9.Text = "O") Then
Button7.BackColor = System.Drawing.Color.Pink
Button8.BackColor = System.Drawing.Color.Pink
Button9.BackColor = System.Drawing.Color.Pink
MessageBox.Show("The Winner is Player O", "TIC TAC TOE", MessageBoxButtons.OK,
MessageBoxIcon.Information)
Label3.Text = "LOOSER"
Label4.Text = "WINNER"
enable_false()
End If
End Sub
Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
If (checker = False) Then
Button1.Text = "X"
checker = True
Else
Button1.Text = "O"
checker = False
End If
score()
Button1.Enabled = False
End Sub
Else
Button2.Text = "O"
checker = False
End If
score()
Button2.Enabled = False
End Sub
13
Private Sub Button3_Click(sender As Object, e As EventArgs) Handles Button3.Click
If (checker = False) Then
Button3.Text = "X"
checker = True
Else
Button3.Text = "O"
checker = False
End If
score()
Button3.Enabled = False
End Sub
Else
Button4.Text = "O"
checker = False
End If
score()
Button4.Enabled = False
End Sub
Else
Button5.Text = "O"
checker = False
End If
score()
14
Button5.Enabled = False
End Sub
Else
Button6.Text = "O"
checker = False
End If
score()
Button6.Enabled = False
End Sub
Else
Button7.Text = "O"
checker = False
End If
score()
Button7.Enabled = False
End Sub
Else
Button8.Text = "O"
15
checker = False
End If
score()
Button8.Enabled = False
End Sub
Else
Button9.Text = "O"
checker = False
End If
score()
Button9.Enabled = False
End Sub
Button1.Text = ""
Button2.Text = ""
Button3.Text = ""
Button4.Text = ""
Button5.Text = ""
Button6.Text = ""
16
Button7.Text = ""
Button8.Text = ""
Button9.Text = ""
Label3.Text = ""
Label4.Text = ""
Button1.BackColor = System.Drawing.Color.WhiteSmoke
Button2.BackColor = Color.WhiteSmoke
Button3.BackColor = Color.WhiteSmoke
Button4.BackColor = Color.WhiteSmoke
Button5.BackColor = Color.WhiteSmoke
Button6.BackColor = Color.WhiteSmoke
Button7.BackColor = Color.WhiteSmoke
Button8.BackColor = Color.WhiteSmoke
Button9.BackColor = Color.WhiteSmoke
End Sub
Button1.Text = ""
Button2.Text = ""
Button3.Text = ""
Button4.Text = ""
Button5.Text = ""
Button6.Text = ""
Button7.Text = ""
17
Button8.Text = ""
Button9.Text = ""
Button12.Enabled = True
Button1.BackColor = System.Drawing.Color.WhiteSmoke
Button2.BackColor = Color.WhiteSmoke
Button3.BackColor = Color.WhiteSmoke
Button4.BackColor = Color.WhiteSmoke
Button5.BackColor = Color.WhiteSmoke
Button6.BackColor = Color.WhiteSmoke
Button7.BackColor = Color.WhiteSmoke
Button8.BackColor = Color.WhiteSmoke
Button9.BackColor = Color.WhiteSmoke
Label3.Text = ""
Label4.Text = ""
End Sub
18
OUTPUT
19
20
21
CONCLUSION
22
REFERENCES
www.google.com
www.youtube.com
www.tutorialspoint.com
www.generalnote.com
www.programiz.com
23