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
Task Manager Function - Form1.vb

Form1.vb

Caricato da:
Scarica il programma completo

  1. Public Class Form1
  2.     Inherits System.Windows.Forms.Form
  3.  
  4. #Region " Windows Form Designer generated code "
  5.  
  6.     Public Sub New()
  7.         MyBase.New()
  8.  
  9.         'This call is required by the Windows Form Designer.
  10.         InitializeComponent()
  11.  
  12.         'Add any initialization after the InitializeComponent() call
  13.  
  14.     End Sub
  15.  
  16.     'Form overrides dispose to clean up the component list.
  17.     Protected Overloads Overrides Sub Dispose(ByVal disposing As Boolean)
  18.         If disposing Then
  19.             If Not (components Is Nothing) Then
  20.                 components.Dispose()
  21.             End If
  22.         End If
  23.         MyBase.Dispose(disposing)
  24.     End Sub
  25.  
  26.     'Required by the Windows Form Designer
  27.     Private components As System.ComponentModel.IContainer
  28.  
  29.     'NOTE: The following procedure is required by the Windows Form Designer
  30.     'It can be modified using the Windows Form Designer.  
  31.     'Do not modify it using the code editor.
  32.     Friend WithEvents Button1 As System.Windows.Forms.Button
  33.     Friend WithEvents Button2 As System.Windows.Forms.Button
  34.     <System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()
  35.         Me.Button1 = New System.Windows.Forms.Button
  36.         Me.Button2 = New System.Windows.Forms.Button
  37.         Me.SuspendLayout()
  38.         '
  39.         'Button1
  40.         '
  41.         Me.Button1.Location = New System.Drawing.Point(8, 8)
  42.         Me.Button1.Name = "Button1"
  43.         Me.Button1.Size = New System.Drawing.Size(296, 56)
  44.         Me.Button1.TabIndex = 0
  45.         Me.Button1.Text = "Enable"
  46.         '
  47.         'Button2
  48.         '
  49.         Me.Button2.Location = New System.Drawing.Point(8, 72)
  50.         Me.Button2.Name = "Button2"
  51.         Me.Button2.Size = New System.Drawing.Size(296, 56)
  52.         Me.Button2.TabIndex = 1
  53.         Me.Button2.Text = "Disable"
  54.         '
  55.         'Form1
  56.         '
  57.         Me.AutoScaleBaseSize = New System.Drawing.Size(7, 19)
  58.         Me.ClientSize = New System.Drawing.Size(314, 136)
  59.         Me.Controls.Add(Me.Button2)
  60.         Me.Controls.Add(Me.Button1)
  61.         Me.Font = New System.Drawing.Font("Comic Sans MS", 9.75!, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
  62.         Me.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle
  63.         Me.MaximizeBox = False
  64.         Me.MinimizeBox = False
  65.         Me.Name = "Form1"
  66.         Me.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen
  67.         Me.Text = "Enable/Disable Task Manager - By Citynova"
  68.         Me.ResumeLayout(False)
  69.  
  70.     End Sub
  71.  
  72. #End Region
  73.  
  74.     Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
  75.         Call EnableTask()
  76.     End Sub
  77.  
  78.     Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
  79.         Call DisableTask()
  80.     End Sub
  81. End Class