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
Internet Point - CloseForm.vb

CloseForm.vb

Caricato da:
Scarica il programma completo

  1. Public Class CloseForm
  2.  
  3.     Private Sub CloseForm_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
  4.         Timer1.Start()
  5.     End Sub
  6.  
  7.     Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
  8.         Process.Start("C:\Windows\system32\shutdown.exe", "-s -t 0")
  9.     End Sub
  10.  
  11.     Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
  12.         Form1.Close()
  13.         Start.Close()
  14.         Sorgenti.Close()
  15.         Me.Close()
  16.     End Sub
  17.  
  18.     Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click
  19.         Form1.Show()
  20.         Me.Close()
  21.     End Sub
  22.  
  23.     Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick
  24.         ProgressBar1.Increment(1)
  25.         If ProgressBar1.Value = 100 Then
  26.             Timer1.Stop()
  27.             Form1.Show()
  28.             Me.Close()
  29.         End If
  30.     End Sub
  31. End Class