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
Bilancio familiare - frmOpzioni.frm

frmOpzioni.frm

Caricato da: Roberto VB
Scarica il programma completo

  1. Option Explicit
  2.  
  3.  
  4. Private Sub cboAggiornamento_Click()
  5.     cmdOk.Enabled = True
  6. End Sub
  7.  
  8. Private Sub chkDisattiva_Click()
  9.     cmdOk.Enabled = True
  10. End Sub
  11.  
  12. Private Sub cmdIndietro_Click()
  13.     Unload Me
  14. End Sub
  15.  
  16. Private Sub cmdOK_Click()
  17.     Dim a As Integer
  18.     a = FreeFile
  19.     'Memorizzo in questo file la scelta effettuata dall'utente
  20.     Open App.Path & "\Update.dat" For Random As a
  21.         If cboAggiornamento.ListIndex = 0 Then
  22.             Put a, 1, "month"
  23.         ElseIf cboAggiornamento.ListIndex = 1 Then
  24.             Put a, 1, "week"
  25.         ElseIf chkDisattiva.Value = vbChecked Then
  26.             Put a, 1, "never"
  27.         End If
  28.     Close a
  29.     cmdOk.Enabled = False
  30.    
  31. End Sub
  32.  
  33. Private Sub cmdVai_Click()
  34.     Unload Me
  35. End Sub
  36.  
  37. Private Sub Form_Load()
  38.     cboAggiornamento.AddItem "Ogni mese", 0
  39.     cboAggiornamento.AddItem "Ogni settimana", 1
  40.     cmdOk.Enabled = False
  41. End Sub