Questo sito utilizza cookies, anche di terze parti, per mostrare pubblicità e servizi in linea con il tuo account. Leggi l'informativa sui cookies.
Username: Password: oppure
File Manager - Main.vb

Main.vb

Caricato da:
Scarica il programma completo

  1. Imports System
  2. Imports System.IO
  3. Imports System.Data
  4. Imports System.Environment
  5. Public Class Form1
  6.     Inherits System.Windows.Forms.Form
  7.  
  8. #Region " Windows Form Designer generated code "
  9.  
  10.     Public Sub New()
  11.         MyBase.New()
  12.  
  13.         'This call is required by the Windows Form Designer.
  14.         InitializeComponent()
  15.  
  16.         'Add any initialization after the InitializeComponent() call
  17.  
  18.     End Sub
  19.  
  20.     'Form overrides dispose to clean up the component list.
  21.     Protected Overloads Overrides Sub Dispose(ByVal disposing As Boolean)
  22.         If disposing Then
  23.             If Not (components Is Nothing) Then
  24.                 components.Dispose()
  25.             End If
  26.         End If
  27.         MyBase.Dispose(disposing)
  28.     End Sub
  29.  
  30.     'Required by the Windows Form Designer
  31.     Private components As System.ComponentModel.IContainer
  32.  
  33.     'NOTE: The following procedure is required by the Windows Form Designer
  34.     'It can be modified using the Windows Form Designer.  
  35.     'Do not modify it using the code editor.
  36.     Friend WithEvents Button1 As System.Windows.Forms.Button
  37.     Friend WithEvents Button2 As System.Windows.Forms.Button
  38.     Friend WithEvents Sposta As System.Windows.Forms.RadioButton
  39.     Friend WithEvents Copia As System.Windows.Forms.RadioButton
  40.     Friend WithEvents Elimina As System.Windows.Forms.RadioButton
  41.     Friend WithEvents Controlla As System.Windows.Forms.RadioButton
  42.     Friend WithEvents Crea As System.Windows.Forms.RadioButton
  43.     <System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()
  44.         Me.Sposta = New System.Windows.Forms.RadioButton
  45.         Me.Copia = New System.Windows.Forms.RadioButton
  46.         Me.Elimina = New System.Windows.Forms.RadioButton
  47.         Me.Controlla = New System.Windows.Forms.RadioButton
  48.         Me.Crea = New System.Windows.Forms.RadioButton
  49.         Me.Button1 = New System.Windows.Forms.Button
  50.         Me.Button2 = New System.Windows.Forms.Button
  51.         Me.SuspendLayout()
  52.         '
  53.         'Sposta
  54.         '
  55.         Me.Sposta.Location = New System.Drawing.Point(8, 8)
  56.         Me.Sposta.Name = "Sposta"
  57.         Me.Sposta.Size = New System.Drawing.Size(272, 24)
  58.         Me.Sposta.TabIndex = 0
  59.         Me.Sposta.Text = "Sposta un File"
  60.         '
  61.         'Copia
  62.         '
  63.         Me.Copia.Location = New System.Drawing.Point(8, 32)
  64.         Me.Copia.Name = "Copia"
  65.         Me.Copia.Size = New System.Drawing.Size(272, 24)
  66.         Me.Copia.TabIndex = 1
  67.         Me.Copia.Text = "Copia un File"
  68.         '
  69.         'Elimina
  70.         '
  71.         Me.Elimina.Location = New System.Drawing.Point(8, 56)
  72.         Me.Elimina.Name = "Elimina"
  73.         Me.Elimina.Size = New System.Drawing.Size(272, 24)
  74.         Me.Elimina.TabIndex = 2
  75.         Me.Elimina.Text = "Elimina un File"
  76.         '
  77.         'Controlla
  78.         '
  79.         Me.Controlla.Location = New System.Drawing.Point(8, 80)
  80.         Me.Controlla.Name = "Controlla"
  81.         Me.Controlla.Size = New System.Drawing.Size(272, 24)
  82.         Me.Controlla.TabIndex = 3
  83.         Me.Controlla.Text = "Controlla L'esistenza di un File"
  84.         '
  85.         'Crea
  86.         '
  87.         Me.Crea.Location = New System.Drawing.Point(8, 104)
  88.         Me.Crea.Name = "Crea"
  89.         Me.Crea.Size = New System.Drawing.Size(272, 24)
  90.         Me.Crea.TabIndex = 4
  91.         Me.Crea.Text = "Crea un File"
  92.         '
  93.         'Button1
  94.         '
  95.         Me.Button1.Location = New System.Drawing.Point(8, 136)
  96.         Me.Button1.Name = "Button1"
  97.         Me.Button1.Size = New System.Drawing.Size(272, 32)
  98.         Me.Button1.TabIndex = 5
  99.         Me.Button1.Text = "Esegui"
  100.         '
  101.         'Button2
  102.         '
  103.         Me.Button2.Location = New System.Drawing.Point(8, 176)
  104.         Me.Button2.Name = "Button2"
  105.         Me.Button2.Size = New System.Drawing.Size(272, 32)
  106.         Me.Button2.TabIndex = 6
  107.         Me.Button2.Text = "Esci"
  108.         '
  109.         'Form1
  110.         '
  111.         Me.AutoScaleBaseSize = New System.Drawing.Size(7, 19)
  112.         Me.ClientSize = New System.Drawing.Size(292, 216)
  113.         Me.Controls.Add(Me.Button2)
  114.         Me.Controls.Add(Me.Button1)
  115.         Me.Controls.Add(Me.Crea)
  116.         Me.Controls.Add(Me.Controlla)
  117.         Me.Controls.Add(Me.Elimina)
  118.         Me.Controls.Add(Me.Copia)
  119.         Me.Controls.Add(Me.Sposta)
  120.         Me.Font = New System.Drawing.Font("Comic Sans MS", 9.75!, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
  121.         Me.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle
  122.         Me.MaximizeBox = False
  123.         Me.MinimizeBox = False
  124.         Me.Name = "Form1"
  125.         Me.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen
  126.         Me.Text = "File Manager - By Citynova"
  127.         Me.ResumeLayout(False)
  128.  
  129.     End Sub
  130.  
  131. #End Region
  132.  
  133.     Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
  134.         Select Case Sposta.CausesValidation And Copia.CausesValidation And Elimina.CausesValidation And Controlla.CausesValidation And Crea.CausesValidation
  135.             Case Sposta.Checked = False And Copia.Checked = False And Elimina.Checked = False And Controlla.Checked = False And Crea.Checked = False
  136.                 MessageBox.Show("Nessuna Azione Selezionata!", "Program Error", MessageBoxButtons.OK, MessageBoxIcon.Error)
  137.             Case Sposta.Checked = True And Copia.Checked = False And Elimina.Checked = False And Controlla.Checked = False And Crea.Checked = False
  138.                 Dim Sposta As New Sposta
  139.                 Sposta.Show()
  140.             Case Sposta.Checked = False And Copia.Checked = True And Elimina.Checked = False And Controlla.Checked = False And Crea.Checked = False
  141.                 Dim Copia As New Copia
  142.                 Copia.Show()
  143.             Case Sposta.Checked = False And Copia.Checked = False And Elimina.Checked = True And Controlla.Checked = False And Crea.Checked = False
  144.                 Dim Elimina As New Elimina
  145.                 Elimina.Show()
  146.             Case Sposta.Checked = False And Copia.Checked = False And Elimina.Checked = False And Controlla.Checked = True And Crea.Checked = False
  147.                 Dim Controlla As New Controlla
  148.                 Controlla.Show()
  149.             Case Sposta.Checked = False And Copia.Checked = False And Elimina.Checked = False And Controlla.Checked = False And Crea.Checked = True
  150.                 Dim Crea As New Crea
  151.                 Crea.Show()
  152.         End Select
  153.     End Sub
  154.  
  155.     Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
  156.         End
  157.     End Sub
  158. End Class