Ho solo adattato il tuo codice al mio programma e funziona tutto alla perfezione

Non è che potresti anche aiutarmi per l'altro postc he ho fattO??