Questo sito utilizza cookies solo per scopi di autenticazione sul sito e nient'altro. Nessuna informazione personale viene tracciata. Leggi l'informativa sui cookies.
Username: Password: oppure
Stringa binaria - Form1.frm

Form1.frm

Caricato da: Albertking82
Scarica il programma completo

  1. Dim m(1 To 22) As String
  2. Dim j As Integer
  3.  
  4. Private Sub Form_Load()
  5. Randomize
  6.  For j = 1 To 22
  7.  m(j) = Int(Rnd * 2)
  8.  Text1.Text = m(j)
  9.  Next j
  10. End Sub
  11.  
  12. Private Sub Form_QueryUnload(Cancel As Integer, UnloadMode As Integer)
  13. Timer1.Enabled = False
  14. Text1.MaxLength = 20
  15. Text1.Text = " Neo matrix has you !"
  16. If MsgBox("Vuoi uscire?", vbInformation + vbYesNo, "esci") = vbNo Then
  17. Cancel = True
  18. Text1.MaxLength = 0
  19. Timer1.Enabled = True
  20. Else
  21. End
  22. End If
  23. End Sub
  24.  
  25. Private Sub Timer1_Timer()
  26. Text1.MaxLength = Text1.MaxLength + 1
  27. Randomize
  28. Timer1.Interval = Int(Rnd * 200)
  29. If Len(Text1.Text) <= Int(Rnd * 30) + 1 Then
  30.  For j = 1 To 22
  31.  m(j) = Int(Rnd * 2)
  32.  Text1.Text = Text1.Text & m(j)
  33.  Next j
  34. Else
  35. Text1.Text = " "
  36. Text1.MaxLength = 0
  37. End If
  38. End Sub