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
Apri Temporizzato - Form1.vb

Form1.vb

Caricato da:
Scarica il programma completo

  1. Public Class Form1
  2.     Inherits System.Windows.Forms.Form
  3.     Dim conta As Integer = 0
  4.     Dim a As String
  5.  
  6. #Region " Codice generato da Progettazione Windows Form "
  7.  
  8.     Public Sub New()
  9.         MyBase.New()
  10.  
  11.         'Chiamata richiesta da Progettazione Windows Form.
  12.         InitializeComponent()
  13.  
  14.         'Aggiungere le eventuali istruzioni di inizializzazione dopo la chiamata a InitializeComponent()
  15.  
  16.     End Sub
  17.  
  18.     'Form esegue l'override del metodo Dispose per pulire l'elenco dei componenti.
  19.     Protected Overloads Overrides Sub Dispose(ByVal disposing As Boolean)
  20.         If disposing Then
  21.             If Not (components Is Nothing) Then
  22.                 components.Dispose()
  23.             End If
  24.         End If
  25.         MyBase.Dispose(disposing)
  26.     End Sub
  27.  
  28.     'Richiesto da Progettazione Windows Form
  29.     Private components As System.ComponentModel.IContainer
  30.  
  31.     'NOTA: la procedura che segue è richiesta da Progettazione Windows Form.
  32.     'Può essere modificata in Progettazione Windows Form.  
  33.     'Non modificarla nell'editor del codice.
  34.     Friend WithEvents StatusBar1 As System.Windows.Forms.StatusBar
  35.     Friend WithEvents StatusBarPanel1 As System.Windows.Forms.StatusBarPanel
  36.     Friend WithEvents Timer1 As System.Windows.Forms.Timer
  37.     Friend WithEvents Label1 As System.Windows.Forms.Label
  38.     Friend WithEvents Label2 As System.Windows.Forms.Label
  39.     Friend WithEvents Label3 As System.Windows.Forms.Label
  40.     Friend WithEvents GroupBox1 As System.Windows.Forms.GroupBox
  41.     Friend WithEvents Label4 As System.Windows.Forms.Label
  42.     Friend WithEvents TextBox1 As System.Windows.Forms.TextBox
  43.     Friend WithEvents Label5 As System.Windows.Forms.Label
  44.     Friend WithEvents Label6 As System.Windows.Forms.Label
  45.     Friend WithEvents Label7 As System.Windows.Forms.Label
  46.     Friend WithEvents Button1 As System.Windows.Forms.Button
  47.     Friend WithEvents giorno As System.Windows.Forms.ComboBox
  48.     Friend WithEvents mese As System.Windows.Forms.ComboBox
  49.     Friend WithEvents anno As System.Windows.Forms.ComboBox
  50.     Friend WithEvents ore As System.Windows.Forms.ComboBox
  51.     Friend WithEvents minuti As System.Windows.Forms.ComboBox
  52.     Friend WithEvents secondi As System.Windows.Forms.ComboBox
  53.     Friend WithEvents GroupBox2 As System.Windows.Forms.GroupBox
  54.     Friend WithEvents TextBox2 As System.Windows.Forms.TextBox
  55.     Friend WithEvents Button2 As System.Windows.Forms.Button
  56.     Friend WithEvents Button3 As System.Windows.Forms.Button
  57.     Friend WithEvents TextBox3 As System.Windows.Forms.TextBox
  58.     Friend WithEvents Button4 As System.Windows.Forms.Button
  59.     Friend WithEvents TextBox4 As System.Windows.Forms.TextBox
  60.     Friend WithEvents NotifyIcon1 As System.Windows.Forms.NotifyIcon
  61.     Friend WithEvents Button5 As System.Windows.Forms.Button
  62.     Friend WithEvents OpenFileDialog1 As System.Windows.Forms.OpenFileDialog
  63.     Friend WithEvents OpenFileDialog2 As System.Windows.Forms.OpenFileDialog
  64.     Friend WithEvents OpenFileDialog3 As System.Windows.Forms.OpenFileDialog
  65.     <System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()
  66.         Me.components = New System.ComponentModel.Container
  67.         Dim resources As System.Resources.ResourceManager = New System.Resources.ResourceManager(GetType(Form1))
  68.         Me.StatusBar1 = New System.Windows.Forms.StatusBar
  69.         Me.StatusBarPanel1 = New System.Windows.Forms.StatusBarPanel
  70.         Me.Timer1 = New System.Windows.Forms.Timer(Me.components)
  71.         Me.giorno = New System.Windows.Forms.ComboBox
  72.         Me.Label1 = New System.Windows.Forms.Label
  73.         Me.Label2 = New System.Windows.Forms.Label
  74.         Me.mese = New System.Windows.Forms.ComboBox
  75.         Me.Label3 = New System.Windows.Forms.Label
  76.         Me.anno = New System.Windows.Forms.ComboBox
  77.         Me.GroupBox1 = New System.Windows.Forms.GroupBox
  78.         Me.Button1 = New System.Windows.Forms.Button
  79.         Me.Label5 = New System.Windows.Forms.Label
  80.         Me.ore = New System.Windows.Forms.ComboBox
  81.         Me.Label6 = New System.Windows.Forms.Label
  82.         Me.minuti = New System.Windows.Forms.ComboBox
  83.         Me.Label7 = New System.Windows.Forms.Label
  84.         Me.secondi = New System.Windows.Forms.ComboBox
  85.         Me.TextBox1 = New System.Windows.Forms.TextBox
  86.         Me.Label4 = New System.Windows.Forms.Label
  87.         Me.GroupBox2 = New System.Windows.Forms.GroupBox
  88.         Me.Button5 = New System.Windows.Forms.Button
  89.         Me.Button4 = New System.Windows.Forms.Button
  90.         Me.TextBox4 = New System.Windows.Forms.TextBox
  91.         Me.Button3 = New System.Windows.Forms.Button
  92.         Me.TextBox3 = New System.Windows.Forms.TextBox
  93.         Me.Button2 = New System.Windows.Forms.Button
  94.         Me.TextBox2 = New System.Windows.Forms.TextBox
  95.         Me.NotifyIcon1 = New System.Windows.Forms.NotifyIcon(Me.components)
  96.         Me.OpenFileDialog1 = New System.Windows.Forms.OpenFileDialog
  97.         Me.OpenFileDialog2 = New System.Windows.Forms.OpenFileDialog
  98.         Me.OpenFileDialog3 = New System.Windows.Forms.OpenFileDialog
  99.         CType(Me.StatusBarPanel1, System.ComponentModel.ISupportInitialize).BeginInit()
  100.         Me.GroupBox1.SuspendLayout()
  101.         Me.GroupBox2.SuspendLayout()
  102.         Me.SuspendLayout()
  103.         '
  104.         'StatusBar1
  105.         '
  106.         Me.StatusBar1.Font = New System.Drawing.Font("Microsoft Sans Serif", 9.75!, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
  107.         Me.StatusBar1.Location = New System.Drawing.Point(0, 158)
  108.         Me.StatusBar1.Name = "StatusBar1"
  109.         Me.StatusBar1.Panels.AddRange(New System.Windows.Forms.StatusBarPanel() {Me.StatusBarPanel1})
  110.         Me.StatusBar1.ShowPanels = True
  111.         Me.StatusBar1.Size = New System.Drawing.Size(606, 22)
  112.         Me.StatusBar1.SizingGrip = False
  113.         Me.StatusBar1.TabIndex = 0
  114.         '
  115.         'StatusBarPanel1
  116.         '
  117.         Me.StatusBarPanel1.Alignment = System.Windows.Forms.HorizontalAlignment.Center
  118.         Me.StatusBarPanel1.AutoSize = System.Windows.Forms.StatusBarPanelAutoSize.Spring
  119.         Me.StatusBarPanel1.Width = 606
  120.         '
  121.         'Timer1
  122.         '
  123.         Me.Timer1.Enabled = True
  124.         Me.Timer1.Interval = 1000
  125.         '
  126.         'giorno
  127.         '
  128.         Me.giorno.BackColor = System.Drawing.Color.White
  129.         Me.giorno.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList
  130.         Me.giorno.Items.AddRange(New Object() {"01", "02", "03", "04", "05", "06", "07", "08", "09", "10", "11", "12", "13", "14", "15", "16", "17", "18", "19", "20", "21", "22", "23", "24", "25", "26", "27", "28", "29", "30", "31"})
  131.         Me.giorno.Location = New System.Drawing.Point(8, 16)
  132.         Me.giorno.MaxDropDownItems = 20
  133.         Me.giorno.Name = "giorno"
  134.         Me.giorno.Size = New System.Drawing.Size(40, 21)
  135.         Me.giorno.TabIndex = 1
  136.         '
  137.         'Label1
  138.         '
  139.         Me.Label1.Font = New System.Drawing.Font("Microsoft Sans Serif", 6.75!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
  140.         Me.Label1.Location = New System.Drawing.Point(8, 40)
  141.         Me.Label1.Name = "Label1"
  142.         Me.Label1.Size = New System.Drawing.Size(32, 16)
  143.         Me.Label1.TabIndex = 2
  144.         Me.Label1.Text = "Giorno"
  145.         Me.Label1.TextAlign = System.Drawing.ContentAlignment.TopCenter
  146.         '
  147.         'Label2
  148.         '
  149.         Me.Label2.Font = New System.Drawing.Font("Microsoft Sans Serif", 6.75!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
  150.         Me.Label2.Location = New System.Drawing.Point(40, 40)
  151.         Me.Label2.Name = "Label2"
  152.         Me.Label2.Size = New System.Drawing.Size(48, 16)
  153.         Me.Label2.TabIndex = 4
  154.         Me.Label2.Text = "Mese"
  155.         Me.Label2.TextAlign = System.Drawing.ContentAlignment.TopCenter
  156.         '
  157.         'mese
  158.         '
  159.         Me.mese.BackColor = System.Drawing.Color.White
  160.         Me.mese.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList
  161.         Me.mese.Items.AddRange(New Object() {"01", "02", "03", "04", "05", "06", "07", "08", "09", "10", "11", "12"})
  162.         Me.mese.Location = New System.Drawing.Point(48, 16)
  163.         Me.mese.MaxDropDownItems = 20
  164.         Me.mese.Name = "mese"
  165.         Me.mese.Size = New System.Drawing.Size(40, 21)
  166.         Me.mese.TabIndex = 3
  167.         '
  168.         'Label3
  169.         '
  170.         Me.Label3.Font = New System.Drawing.Font("Microsoft Sans Serif", 6.75!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
  171.         Me.Label3.Location = New System.Drawing.Point(80, 40)
  172.         Me.Label3.Name = "Label3"
  173.         Me.Label3.Size = New System.Drawing.Size(56, 16)
  174.         Me.Label3.TabIndex = 6
  175.         Me.Label3.Text = "Anno"
  176.         Me.Label3.TextAlign = System.Drawing.ContentAlignment.TopCenter
  177.         '
  178.         'anno
  179.         '
  180.         Me.anno.BackColor = System.Drawing.Color.White
  181.         Me.anno.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList
  182.         Me.anno.Items.AddRange(New Object() {"2006", "2007", "2008", "2009", "2010"})
  183.         Me.anno.Location = New System.Drawing.Point(88, 16)
  184.         Me.anno.MaxDropDownItems = 20
  185.         Me.anno.Name = "anno"
  186.         Me.anno.Size = New System.Drawing.Size(48, 21)
  187.         Me.anno.TabIndex = 5
  188.         '
  189.         'GroupBox1
  190.         '
  191.         Me.GroupBox1.Controls.Add(Me.Button1)
  192.         Me.GroupBox1.Controls.Add(Me.Label5)
  193.         Me.GroupBox1.Controls.Add(Me.ore)
  194.         Me.GroupBox1.Controls.Add(Me.Label6)
  195.         Me.GroupBox1.Controls.Add(Me.minuti)
  196.         Me.GroupBox1.Controls.Add(Me.Label7)
  197.         Me.GroupBox1.Controls.Add(Me.secondi)
  198.         Me.GroupBox1.Controls.Add(Me.TextBox1)
  199.         Me.GroupBox1.Controls.Add(Me.Label4)
  200.         Me.GroupBox1.Controls.Add(Me.Label3)
  201.         Me.GroupBox1.Controls.Add(Me.giorno)
  202.         Me.GroupBox1.Controls.Add(Me.Label1)
  203.         Me.GroupBox1.Controls.Add(Me.mese)
  204.         Me.GroupBox1.Controls.Add(Me.Label2)
  205.         Me.GroupBox1.Controls.Add(Me.anno)
  206.         Me.GroupBox1.FlatStyle = System.Windows.Forms.FlatStyle.System
  207.         Me.GroupBox1.Location = New System.Drawing.Point(8, 0)
  208.         Me.GroupBox1.Name = "GroupBox1"
  209.         Me.GroupBox1.Size = New System.Drawing.Size(144, 152)
  210.         Me.GroupBox1.TabIndex = 7
  211.         Me.GroupBox1.TabStop = False
  212.         Me.GroupBox1.Text = "Impostazioni"
  213.         '
  214.         'Button1
  215.         '
  216.         Me.Button1.FlatStyle = System.Windows.Forms.FlatStyle.System
  217.         Me.Button1.Location = New System.Drawing.Point(32, 96)
  218.         Me.Button1.Name = "Button1"
  219.         Me.Button1.TabIndex = 15
  220.         Me.Button1.Text = "Accetta"
  221.         '
  222.         'Label5
  223.         '
  224.         Me.Label5.Font = New System.Drawing.Font("Microsoft Sans Serif", 6.75!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
  225.         Me.Label5.Location = New System.Drawing.Point(80, 80)
  226.         Me.Label5.Name = "Label5"
  227.         Me.Label5.Size = New System.Drawing.Size(56, 16)
  228.         Me.Label5.TabIndex = 14
  229.         Me.Label5.Text = "Secondi"
  230.         Me.Label5.TextAlign = System.Drawing.ContentAlignment.TopCenter
  231.         '
  232.         'ore
  233.         '
  234.         Me.ore.BackColor = System.Drawing.Color.White
  235.         Me.ore.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList
  236.         Me.ore.Items.AddRange(New Object() {"01", "02", "03", "04", "05", "06", "07", "08", "09", "10", "11", "12", "13", "14", "15", "16", "17", "18", "19", "20", "21", "22", "23", "24"})
  237.         Me.ore.Location = New System.Drawing.Point(8, 56)
  238.         Me.ore.MaxDropDownItems = 20
  239.         Me.ore.Name = "ore"
  240.         Me.ore.Size = New System.Drawing.Size(40, 21)
  241.         Me.ore.TabIndex = 9
  242.         '
  243.         'Label6
  244.         '
  245.         Me.Label6.Font = New System.Drawing.Font("Microsoft Sans Serif", 6.75!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
  246.         Me.Label6.Location = New System.Drawing.Point(8, 80)
  247.         Me.Label6.Name = "Label6"
  248.         Me.Label6.Size = New System.Drawing.Size(32, 16)
  249.         Me.Label6.TabIndex = 10
  250.         Me.Label6.Text = "Ore"
  251.         Me.Label6.TextAlign = System.Drawing.ContentAlignment.TopCenter
  252.         '
  253.         'minuti
  254.         '
  255.         Me.minuti.BackColor = System.Drawing.Color.White
  256.         Me.minuti.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList
  257.         Me.minuti.Items.AddRange(New Object() {"01", "02", "03", "04", "05", "06", "07", "08", "09", "10", "11", "12", "13", "14", "15", "16", "17", "18", "19", "20", "21", "22", "23", "24", "25", "26", "27", "28", "29", "30", "31", "32", "33", "34", "35", "36", "37", "38", "39", "40", "41", "42", "43", "44", "45", "46", "47", "48", "49", "50", "51", "52", "53", "54", "55", "56", "57", "58", "59"})
  258.         Me.minuti.Location = New System.Drawing.Point(48, 56)
  259.         Me.minuti.MaxDropDownItems = 20
  260.         Me.minuti.Name = "minuti"
  261.         Me.minuti.Size = New System.Drawing.Size(40, 21)
  262.         Me.minuti.TabIndex = 11
  263.         '
  264.         'Label7
  265.         '
  266.         Me.Label7.Font = New System.Drawing.Font("Microsoft Sans Serif", 6.75!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
  267.         Me.Label7.Location = New System.Drawing.Point(32, 80)
  268.         Me.Label7.Name = "Label7"
  269.         Me.Label7.Size = New System.Drawing.Size(64, 16)
  270.         Me.Label7.TabIndex = 12
  271.         Me.Label7.Text = "Minuti"
  272.         Me.Label7.TextAlign = System.Drawing.ContentAlignment.TopCenter
  273.         '
  274.         'secondi
  275.         '
  276.         Me.secondi.BackColor = System.Drawing.Color.White
  277.         Me.secondi.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList
  278.         Me.secondi.Items.AddRange(New Object() {"01", "02", "03", "04", "05", "06", "07", "08", "09", "10", "11", "12", "13", "14", "15", "16", "17", "18", "19", "20", "21", "22", "23", "24", "25", "26", "27", "28", "29", "30", "31", "32", "33", "34", "35", "36", "37", "38", "39", "40", "41", "42", "43", "44", "45", "46", "47", "48", "49", "50", "51", "52", "53", "54", "55", "56", "57", "58", "59"})
  279.         Me.secondi.Location = New System.Drawing.Point(88, 56)
  280.         Me.secondi.MaxDropDownItems = 20
  281.         Me.secondi.Name = "secondi"
  282.         Me.secondi.Size = New System.Drawing.Size(48, 21)
  283.         Me.secondi.TabIndex = 13
  284.         '
  285.         'TextBox1
  286.         '
  287.         Me.TextBox1.BackColor = System.Drawing.SystemColors.Control
  288.         Me.TextBox1.BorderStyle = System.Windows.Forms.BorderStyle.None
  289.         Me.TextBox1.Location = New System.Drawing.Point(8, 136)
  290.         Me.TextBox1.Name = "TextBox1"
  291.         Me.TextBox1.ReadOnly = True
  292.         Me.TextBox1.Size = New System.Drawing.Size(128, 13)
  293.         Me.TextBox1.TabIndex = 8
  294.         Me.TextBox1.Text = ""
  295.         Me.TextBox1.TextAlign = System.Windows.Forms.HorizontalAlignment.Center
  296.         '
  297.         'Label4
  298.         '
  299.         Me.Label4.Location = New System.Drawing.Point(24, 120)
  300.         Me.Label4.Name = "Label4"
  301.         Me.Label4.Size = New System.Drawing.Size(100, 16)
  302.         Me.Label4.TabIndex = 7
  303.         Me.Label4.Text = "Stringa di uscita"
  304.         '
  305.         'GroupBox2
  306.         '
  307.         Me.GroupBox2.Controls.Add(Me.Button5)
  308.         Me.GroupBox2.Controls.Add(Me.Button4)
  309.         Me.GroupBox2.Controls.Add(Me.TextBox4)
  310.         Me.GroupBox2.Controls.Add(Me.Button3)
  311.         Me.GroupBox2.Controls.Add(Me.TextBox3)
  312.         Me.GroupBox2.Controls.Add(Me.Button2)
  313.         Me.GroupBox2.Controls.Add(Me.TextBox2)
  314.         Me.GroupBox2.Location = New System.Drawing.Point(152, 0)
  315.         Me.GroupBox2.Name = "GroupBox2"
  316.         Me.GroupBox2.Size = New System.Drawing.Size(448, 152)
  317.         Me.GroupBox2.TabIndex = 8
  318.         Me.GroupBox2.TabStop = False
  319.         Me.GroupBox2.Text = "Programmi da aprire"
  320.         '
  321.         'Button5
  322.         '
  323.         Me.Button5.FlatStyle = System.Windows.Forms.FlatStyle.System
  324.         Me.Button5.Font = New System.Drawing.Font("Microsoft Sans Serif", 6.75!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
  325.         Me.Button5.Location = New System.Drawing.Point(400, 128)
  326.         Me.Button5.Name = "Button5"
  327.         Me.Button5.Size = New System.Drawing.Size(40, 16)
  328.         Me.Button5.TabIndex = 21
  329.         Me.Button5.Text = "Tray"
  330.         '
  331.         'Button4
  332.         '
  333.         Me.Button4.FlatStyle = System.Windows.Forms.FlatStyle.System
  334.         Me.Button4.Location = New System.Drawing.Point(368, 96)
  335.         Me.Button4.Name = "Button4"
  336.         Me.Button4.TabIndex = 20
  337.         Me.Button4.Text = "Sfoglia"
  338.         '
  339.         'TextBox4
  340.         '
  341.         Me.TextBox4.BackColor = System.Drawing.Color.White
  342.         Me.TextBox4.Location = New System.Drawing.Point(8, 96)
  343.         Me.TextBox4.Name = "TextBox4"
  344.         Me.TextBox4.ReadOnly = True
  345.         Me.TextBox4.Size = New System.Drawing.Size(352, 20)
  346.         Me.TextBox4.TabIndex = 19
  347.         Me.TextBox4.Text = ""
  348.         '
  349.         'Button3
  350.         '
  351.         Me.Button3.FlatStyle = System.Windows.Forms.FlatStyle.System
  352.         Me.Button3.Location = New System.Drawing.Point(368, 56)
  353.         Me.Button3.Name = "Button3"
  354.         Me.Button3.TabIndex = 18
  355.         Me.Button3.Text = "Sfoglia"
  356.         '
  357.         'TextBox3
  358.         '
  359.         Me.TextBox3.BackColor = System.Drawing.Color.White
  360.         Me.TextBox3.Location = New System.Drawing.Point(8, 56)
  361.         Me.TextBox3.Name = "TextBox3"
  362.         Me.TextBox3.ReadOnly = True
  363.         Me.TextBox3.Size = New System.Drawing.Size(352, 20)
  364.         Me.TextBox3.TabIndex = 17
  365.         Me.TextBox3.Text = ""
  366.         '
  367.         'Button2
  368.         '
  369.         Me.Button2.FlatStyle = System.Windows.Forms.FlatStyle.System
  370.         Me.Button2.Location = New System.Drawing.Point(368, 16)
  371.         Me.Button2.Name = "Button2"
  372.         Me.Button2.TabIndex = 16
  373.         Me.Button2.Text = "Sfoglia"
  374.         '
  375.         'TextBox2
  376.         '
  377.         Me.TextBox2.BackColor = System.Drawing.Color.White
  378.         Me.TextBox2.Location = New System.Drawing.Point(8, 16)
  379.         Me.TextBox2.Name = "TextBox2"
  380.         Me.TextBox2.ReadOnly = True
  381.         Me.TextBox2.Size = New System.Drawing.Size(352, 20)
  382.         Me.TextBox2.TabIndex = 0
  383.         Me.TextBox2.Text = ""
  384.         '
  385.         'NotifyIcon1
  386.         '
  387.         Me.NotifyIcon1.Icon = CType(resources.GetObject("NotifyIcon1.Icon"), System.Drawing.Icon)
  388.         Me.NotifyIcon1.Text = "Apertura Temporizzata By GoLDBeRG"
  389.         Me.NotifyIcon1.Visible = True
  390.         '
  391.         'OpenFileDialog1
  392.         '
  393.         Me.OpenFileDialog1.Filter = "Tutti i File (*.*)|"
  394.         Me.OpenFileDialog1.InitialDirectory = "c:\"
  395.         '
  396.         'OpenFileDialog2
  397.         '
  398.         Me.OpenFileDialog2.Filter = "Tutti i File (*.*)|"
  399.         Me.OpenFileDialog2.InitialDirectory = "c:\"
  400.         '
  401.         'OpenFileDialog3
  402.         '
  403.         Me.OpenFileDialog3.Filter = "Tutti i File (*.*)|"
  404.         Me.OpenFileDialog3.InitialDirectory = "c:\"
  405.         '
  406.         'Form1
  407.         '
  408.         Me.AutoScaleBaseSize = New System.Drawing.Size(5, 13)
  409.         Me.ClientSize = New System.Drawing.Size(606, 180)
  410.         Me.Controls.Add(Me.GroupBox2)
  411.         Me.Controls.Add(Me.GroupBox1)
  412.         Me.Controls.Add(Me.StatusBar1)
  413.         Me.FormBorderStyle = System.Windows.Forms.FormBorderStyle.Fixed3D
  414.         Me.Icon = CType(resources.GetObject("$this.Icon"), System.Drawing.Icon)
  415.         Me.MaximizeBox = False
  416.         Me.Name = "Form1"
  417.         Me.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen
  418.         Me.Text = "Apertura Temporizzata By GoLDBeRG"
  419.         CType(Me.StatusBarPanel1, System.ComponentModel.ISupportInitialize).EndInit()
  420.         Me.GroupBox1.ResumeLayout(False)
  421.         Me.GroupBox2.ResumeLayout(False)
  422.         Me.ResumeLayout(False)
  423.  
  424.     End Sub
  425.  
  426. #End Region
  427.  
  428.     Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
  429.         '27/04/2006 18.28.05
  430.         StatusBar1.Panels.Item(0).Text = Now.Now
  431.     End Sub
  432.  
  433.     Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick
  434.         StatusBar1.Panels.Item(0).Text = Now.Now
  435.         If a = Convert.ToString(Now.Now) Then
  436.             Process.Start(TextBox2.Text)
  437.             Process.Start(TextBox3.Text)
  438.             Process.Start(TextBox4.Text)
  439.         End If
  440.     End Sub
  441.  
  442.     Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
  443.         a = giorno.Text & "/" & mese.Text & "/" & anno.Text & " " & ore.Text & "." & minuti.Text & "." & secondi.Text
  444.         TextBox1.Text = a
  445.     End Sub
  446.  
  447.     Private Sub NotifyIcon1_DoubleClick(ByVal sender As Object, ByVal e As System.EventArgs) Handles NotifyIcon1.DoubleClick
  448.         If Me.Visible = True Then  Else Me.Visible = True
  449.     End Sub
  450.  
  451.     Private Sub Button5_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button5.Click
  452.         Me.Hide()
  453.     End Sub
  454.  
  455.     Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
  456.         OpenFileDialog1.ShowDialog()
  457.         TextBox2.Text = (OpenFileDialog1.FileName)
  458.     End Sub
  459.  
  460.     Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click
  461.         OpenFileDialog2.ShowDialog()
  462.         TextBox3.Text = (OpenFileDialog2.FileName)
  463.     End Sub
  464.  
  465.     Private Sub Button4_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button4.Click
  466.         OpenFileDialog3.ShowDialog()
  467.         TextBox4.Text = (OpenFileDialog3.FileName)
  468.     End Sub
  469. End Class
  470.  
  471. Public Class Main
  472.     Shared Sub Main()
  473.         Application.EnableVisualStyles()
  474.         Application.Run(New Form1)
  475.     End Sub
  476. End Class