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
Virtual Agent Helper - frmOption.vb

frmOption.vb

Caricato da: Totem
Scarica il programma completo

  1. Imports WindowsApplication1.frmHelper
  2. Public Class frmOption
  3.     Private Sub frmOption_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
  4.         For Each C As Control In GroupBox1.Controls
  5.             If TypeOf C Is TextBox Then
  6.                 Dim Num As Byte = Val(C.Name.Chars(C.Name.Length - 1)) - 1
  7.                 'MsgBox(Num & "-" + Sentences(Num))
  8.                 C.Text = Sentences(Num)
  9.             End If
  10.         Next
  11.     End Sub
  12.     Private Sub cmdSave_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmdSave.Click
  13.         For Each C As Control In GroupBox1.Controls
  14.             If TypeOf C Is TextBox Then
  15.                 Dim Num As Byte = Val(C.Name.Chars(C.Name.Length - 1)) - 1
  16.                 Sentences(Num) = C.Text
  17.             End If
  18.         Next
  19.         MsgBox("Salvataggio completato!", MsgBoxStyle.Information)
  20.     End Sub
  21. End Class