Gad Report-1
Gad Report-1
Gad Report-1
1 FRONT FAGE
2 CERTIFICATE
3 ACTION PLAN
4 INDEX
5 CODE AND
OUTPUT
6 ABSTRACT
7 INTRODUCTION
8 CONCLUSION
9 RESULT
10 REFERENCE
INDEX
ABSTRACT
• This presents the development of a softwarebased
scientific calculator using Visual Basic.Net (VB.Net).
Visual Studio 2022 package was used and it contains
the VB.Net framework.
• The program ran and it was error-free. The Tic Tac Toe
was implemented in a Windows Operating System (OS)
because Visual Basic .Net is a Windows-based
software.
CODE
Public Class Form1
Dim checker As Boolean
btnTic1.Enabled = False
btnTic2.Enabled = False
btnTic3.Enabled = False
btnTic4.Enabled = False
btnTic5.Enabled = False
btnTic6.Enabled = False
btnTic7.Enabled = False
btnTic8.Enabled = False
btnTic9.Enabled = False
End Sub
btnTic1.BackColor = System.Drawing.Color.PowderBlue
btnTic2.BackColor = System.Drawing.Color.PowderBlue
btnTic3.BackColor = System.Drawing.Color.PowderBlue
plusone = Convert.ToInt64(lblPlayerX.Text)
lblPlayerX.text = Convert.ToString(plusone)
Enable_False()
End If
btnTic1.BackColor = System.Drawing.Color.Pink
btnTic4.BackColor = System.Drawing.Color.Pink
btnTic7.BackColor = System.Drawing.Color.Pink
plusone = Convert.ToInt64(lblPlayerX.Text)
lblPlayerX.text = Convert.ToString(plusone)
Enable_False()
End If
btnTic1.BackColor = System.Drawing.Color.Crimson
btnTic5.BackColor = System.Drawing.Color.Crimson
btnTic9.BackColor = System.Drawing.Color.Crimson
plusone = Convert.ToInt64(lblPlayerX.Text)
lblPlayerX.text = Convert.ToString(plusone)
Enable_False()
End If
btnTic3.BackColor = System.Drawing.Color.CadetBlue
btnTic5.BackColor = System.Drawing.Color.CadetBlue
btnTic7.BackColor = System.Drawing.Color.CadetBlue
plusone = Convert.ToInt64(lblPlayerX.Text)
lblPlayerX.text = Convert.ToString(plusone)
Enable_False()
End If
btnTic2.BackColor = System.Drawing.Color.SlateBlue
btnTic5.BackColor = System.Drawing.Color.SlateBlue
btnTic8.BackColor = System.Drawing.Color.SlateBlue
plusone = Convert.ToInt64(lblPlayerX.Text)
lblPlayerX.text = Convert.ToString(plusone)
Enable_False()
End If
btnTic3.BackColor = System.Drawing.Color.Violet
btnTic6.BackColor = System.Drawing.Color.Violet
btnTic9.BackColor = System.Drawing.Color.Violet
plusone = Convert.ToInt64(lblPlayerX.Text)
lblPlayerX.text = Convert.ToString(plusone)
Enable_False()
End If
btnTic4.BackColor = System.Drawing.Color.DarkSlateBlue
btnTic5.BackColor = System.Drawing.Color.DarkSlateBlue
btnTic7.BackColor = System.Drawing.Color.DarkSlateBlue
plusone = Convert.ToInt64(lblPlayerX.Text)
lblPlayerX.text = Convert.ToString(plusone)
Enable_False()
End If
btnTic7.BackColor = System.Drawing.Color.Azure
btnTic8.BackColor = System.Drawing.Color.Azure
btnTic9.BackColor = System.Drawing.Color.Azure
plusone = Convert.ToInt64(lblPlayerX.Text)
lblPlayerX.text = Convert.ToString(plusone)
Enable_False()
End If
btnTic1.BackColor = System.Drawing.Color.AliceBlue
btnTic2.BackColor = System.Drawing.Color.AliceBlue
btnTic3.BackColor = System.Drawing.Color.AliceBlue
plusone = Convert.ToInt64(lblPlayerO.Text)
lblPlayerO.text = Convert.ToString(plusone + 1)
Enable_False()
End If
btnTic1.BackColor = System.Drawing.Color.LemonChiffon
btnTic4.BackColor = System.Drawing.Color.LemonChiffon
btnTic7.BackColor = System.Drawing.Color.LemonChiffon
plusone = Convert.ToInt64(lblPlayerO.Text)
lblPlayerO.text = Convert.ToString(plusone + 1)
Enable_False()
End If
btnTic1.BackColor = System.Drawing.Color.BlueViolet
btnTic5.BackColor = System.Drawing.Color.BlueViolet
btnTic9.BackColor = System.Drawing.Color.BlueViolet
plusone = Convert.ToInt64(lblPlayerO.Text)
lblPlayerO.text = Convert.ToString(plusone + 1)
Enable_False()
End If
btnTic3.BackColor = System.Drawing.Color.NavajoWhite
btnTic5.BackColor = System.Drawing.Color.NavajoWhite
btnTic7.BackColor = System.Drawing.Color.NavajoWhite
plusone = Convert.ToInt64(lblPlayerO.Text)
lblPlayerO.text = Convert.ToString(plusone + 1)
Enable_False()
End If
btnTic2.BackColor = System.Drawing.Color.SandyBrown
btnTic5.BackColor = System.Drawing.Color.SandyBrown
btnTic8.BackColor = System.Drawing.Color.SandyBrown
plusone = Convert.ToInt64(lblPlayerO.Text)
lblPlayerO.text = Convert.ToString(plusone + 1)
Enable_False()
End If
btnTic3.BackColor = System.Drawing.Color.SeaGreen
btnTic6.BackColor = System.Drawing.Color.SeaGreen
btnTic9.BackColor = System.Drawing.Color.SeaGreen
plusone = Convert.ToInt64(lblPlayerO.Text)
lblPlayerO.text = Convert.ToString(plusone + 1)
Enable_False()
End If
btnTic4.BackColor = System.Drawing.Color.Azure
btnTic5.BackColor = System.Drawing.Color.Azure
btnTic7.BackColor = System.Drawing.Color.Azure
plusone = Convert.ToInt64(lblPlayerO.Text)
lblPlayerO.text = Convert.ToString(plusone + 1)
Enable_False()
End If
btnTic7.BackColor = System.Drawing.Color.DarkBlue
btnTic8.BackColor = System.Drawing.Color.DarkBlue
btnTic9.BackColor = System.Drawing.Color.DarkBlue
plusone = Convert.ToInt64(lblPlayerO.Text)
lblPlayerO.text = Convert.ToString(plusone + 1)
Enable_False()
End If
End Sub
btnTic1.Text = "X"
checker = True
Else
btnTic1.Text = "O"
checker = False
End If
score()
btnTic1.Enabled = False
End Sub
btnTic2.Text = "X"
checker = True
Else
btnTic2.Text = "O"
checker = False
End If
score()
btnTic2.Enabled = False
End Sub
btnTic3.Text = "X"
checker = True
Else
btnTic3.Text = "O"
checker = False
End If
score()
btnTic3.Enabled = False
End Sub
btnTic4.Text = "X"
checker = True
Else
btnTic4.Text = "O"
checker = False
End If
score()
btnTic4.Enabled = False
End Sub
btnTic5.Text = "X"
checker = True
Else
btnTic5.Text = "O"
checker = False
End If
score()
btnTic5.Enabled = False
End Sub
btnTic6.Text = "X"
checker = True
Else
btnTic6.Text = "O"
checker = False
End If
score()
btnTic6.Enabled = False
End Sub
btnTic7.Text = "X"
checker = True
Else
btnTic7.Text = "O"
checker = False
End If
score()
btnTic7.Enabled = False
End Sub
btnTic8.Text = "X"
checker = True
Else
btnTic8.Text = "O"
checker = False
End If
score()
btnTic8.Enabled = False
End Sub
btnTic9.Text = "X"
checker = True
Else
btnTic9.Text = "O"
checker = False
End If
score()
btnTic9.Enabled = False
End Sub
btnTic1.Enabled = True
btnTic2.Enabled = True
btnTic3.Enabled = True
btnTic4.Enabled = True
btnTic5.Enabled = True
btnTic6.Enabled = True
btnTic7.Enabled = True
btnTic8.Enabled = True
btnTic9.Enabled = True
btnTic1.Text = ""
btnTic2.Text = ""
btnTic3.Text = ""
btnTic4.Text = ""
btnTic5.Text = ""
btnTic6.Text = ""
btnTic7.Text = ""
btnTic8.Text = ""
btnTic9.Text = ""
lblPlayerX.text = "0"
lblPlayerO.text = "0"
btnTic1.BackColor = System.Drawing.Color.WhiteSmoke
btnTic2.BackColor = Color.WhiteSmoke
btnTic3.BackColor = Color.WhiteSmoke
btnTic4.BackColor = Color.WhiteSmoke
btnTic5.BackColor = Color.WhiteSmoke
btnTic6.BackColor = Color.WhiteSmoke
btnTic7.BackColor = Color.WhiteSmoke
btnTic8.BackColor = Color.WhiteSmoke
btnTic9.BackColor = Color.WhiteSmoke
End Sub
btnTic1.Enabled = True
btnTic2.Enabled = True
btnTic3.Enabled = True
btnTic4.Enabled = True
btnTic5.Enabled = True
btnTic6.Enabled = True
btnTic7.Enabled = True
btnTic8.Enabled = True
btnTic9.Enabled = True
btnTic1.Text = ""
btnTic2.Text = ""
btnTic3.Text = ""
btnTic4.Text = ""
btnTic5.Text = ""
btnTic6.Text = ""
btnTic7.Text = ""
btnTic8.Text = ""
btnTic9.Text = ""
btnNewgame.Enable = True
btnTic1.BackColor = System.Drawing.Color.WhiteSmoke
btnTic2.BackColor = Color.WhiteSmoke
btnTic3.BackColor = Color.WhiteSmoke
btnTic4.BackColor = Color.WhiteSmoke
btnTic5.BackColor = Color.WhiteSmoke
btnTic6.BackColor = Color.WhiteSmoke
btnTic7.BackColor = Color.WhiteSmoke
btnTic8.BackColor = Color.WhiteSmoke
btnTic9.BackColor = Color.WhiteSmoke
End Sub
Application.Exit()
End If
End Sub
End Class
OUTPUT
CONCLUSION
• With the introduction of the .Net framework and VB.Net
language, software development has been greatly
facilitated with easy use of objects (forms, buttons,
boxes, etc) which can be inserted and then their
functions specified by coding.
RESULT
Thus we have completed the Microproject successfully
REFERENCE
• https://youtu.be/s5xhTZhWhrQ