yassine 05
زيزوومى فعال
- إنضم
- 8 سبتمبر 2009
- المشاركات
- 240
- مستوى التفاعل
- 40
- النقاط
- 340
غير متصل
قم بمتابعة الفيديو أدناه لمعرفة كيفية تثبيت موقعنا كتطبيق ويب على الشاشة الرئيسية.
ملاحظة: قد لا تكون هذه الميزة متاحة في بعض المتصفحات.
My.Computer.Clipboard.SetText(TextBox1.Text)
My.Computer.Clipboard.SetImage(PictureBox1.Image)
My.Computer.Clipboard.Clear()
MsgBox(My.Computer.Clock.GmtTime)
MsgBox(My.Computer.Clock.LocalTime)
My.Computer.Audio.Play("C:\Windows\Media\tada.wav")
My.Computer.Audio.Stop()
My.Computer.Audio.PlaySystemSound(Media.SystemSounds.Beep)
My.Computer.Audio.Play("C:\Windows\Media\tada.wav", AudioPlayMode.BackgroundLoop)
MsgBox(My.Computer.FileSystem.ReadAllText("C:\test.txt"))
My.Computer.FileSystem.CopyFile("C:\test.txt", "C:\Users\ali\Desktop\test1.txt")
My.Computer.FileSystem.WriteAllText("C:\test.txt", "this is a new text that has been added", False)
My.Computer.FileSystem.ReadAllText
My.Computer.FileSystem.CreateDirectory("c:\1")
My.Computer.FileSystem.CreateDirectory("c:\1")
Dim file As System.IO.FileStream
file = System.IO.File.Create("c:\1\test.txt")
My.Computer.FileSystem.DeleteFile("C:\1\test.txt")
My.Computer.FileSystem.MoveFile("امتداد الملف المراد نقله", "امتداد النقل مع الاسم")
MsgBox(My.Computer.FileSystem.GetDirectoryInfo("C:"))
MsgBox(My.Computer.FileSystem.GetDirectoryInfo("C:\").CreationTime)
MsgBox(My.Computer.FileSystem.GetDirectoryInfo("C:\").Exists)
MsgBox(My.Computer.FileSystem.GetDirectoryInfo("C:\0").Exists)
msgbox("Hi there")
MsgBox(Text[, buttons] [, title] [, helpfile, context])
MsgBox("Are you sure you want to exit?", MsgBoxStyle.YesNo, "Exit?")
MsgBox("Are you sure you want to exit?", 4, "Exit?")
Dim reault = MsgBox("Are you sure you want to exit?", 4, "Exit?")
If reault = MsgBoxResult.No Then
Exit Sub
Else : End
End If
Dim Player As String
Timer1.Start()
Player = "1"
Btn1.TabStop = False
Btn2.TabStop = False
Btn3.TabStop = False
Btn4.TabStop = False
Btn5.TabStop = False
Btn6.TabStop = False
Btn7.TabStop = False
Btn8.TabStop = False
Btn9.TabStop = False
If Player = "1" Then
Btn1.Text = "X"
Btn1.Enabled = False
Player = "2"
'--Player2--
ElseIf Player = "2" Then
Btn1.Text = "O"
Btn1.Enabled = False
Player = "1"
End If
Private Sub TheWinner()
End sub
If Btn1.Text = "X" And Btn2.Text = "X" And Btn3.Text = "X" Then
Timer1.Stop()
MsgBox("Player 1 is the winner")
ElseIf Btn1.Text = "O" And Btn2.Text = "O" And Btn3.Text = "O" Then
Timer1.Stop()
MsgBox("Player 2 is the winner")
ElseIf Btn1.Text = "O" And Btn5.Text = "O" And Btn9.Text = "O" Then
Timer1.Stop()
MsgBox("Player 2 is the winner")
ElseIf Btn1.Text = "X" And Btn5.Text = "X" And Btn9.Text = "X" Then
Timer1.Stop()
MsgBox("Player 1 is the winner")
ElseIf Btn1.Text = "X" And Btn4.Text = "X" And Btn7.Text = "X" Then
Timer1.Stop()
MsgBox("Player 1 is the winner")
ElseIf Btn1.Text = "O" And Btn4.Text = "O" And Btn7.Text = "O" Then
Timer1.Stop()
MsgBox("Player 2 is the winner")
ElseIf Btn3.Text = "X" And Btn6.Text = "X" And Btn9.Text = "X" Then
Timer1.Stop()
MsgBox("Player 1 is the winner")
ElseIf Btn3.Text = "O" And Btn6.Text = "O" And Btn9.Text = "O" Then
Timer1.Stop()
MsgBox("Player 2 is the winner")
ElseIf Btn3.Text = "X" And Btn5.Text = "X" And Btn7.Text = "X" Then
Timer1.Stop()
MsgBox("Player 1 is the winner")
ElseIf Btn3.Text = "O" And Btn5.Text = "O" And Btn7.Text = "O" Then
Timer1.Stop()
MsgBox("Player 2 is the winner")
ElseIf Btn2.Text = "X" And Btn5.Text = "X" And Btn8.Text = "X" Then
Timer1.Stop()
MsgBox("Player 1 is the winner")
ElseIf Btn2.Text = "O" And Btn5.Text = "O" And Btn8.Text = "O" Then
Timer1.Stop()
MsgBox("Player 2 is the winner")
ElseIf Btn7.Text = "O" And Btn8.Text = "O" And Btn9.Text = "O" Then
Timer1.Stop()
MsgBox("Player 2 is the winner")
ElseIf Btn7.Text = "X" And Btn8.Text = "X" And Btn9.Text = "X" Then
Timer1.Stop()
MsgBox("Player 1 is the winner")
ElseIf Btn4.Text = "O" And Btn5.Text = "O" And Btn6.Text = "O" Then
Timer1.Stop()
MsgBox("Player 2 is the winner")
ElseIf Btn4.Text = "X" And Btn5.Text = "X" And Btn6.Text = "X" Then
Timer1.Stop()
MsgBox("Player 1 is the winner")
Else
GameOver()
End If
Private Sub GameOver()
If Btn1.Enabled = False And _
Btn2.Enabled = False And _
Btn3.Enabled = False And _
Btn4.Enabled = False And _
Btn5.Enabled = False And _
Btn6.Enabled = False And _
Btn7.Enabled = False And _
Btn8.Enabled = False And _
Btn9.Enabled = False Then
Timer1.Stop()
MsgBox("Game OVER!")
End If
End Sub
TheWinner()
Public Class Form1
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Timer1.Start()
End Sub
Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick
Me.Width += 10
Me.Height += 10
If Me.Width = 400 AndAlso Me.Height = 400 Then
Timer1.Stop()
End If
End Sub
End Class