Ave a tutti, posto qui per non aprire un altro topic.
Io ho una ListBox e vorrei con un clic di un pulsante che l'elemento selezionato venga spostato in alto.
Per fare ciò ho provato ad usare questo codice per scambiare i due elementi
PUBLIC SUB SpostaSu_Click()
DIM t AS String
t = TemiDaRuotare.List[TemiDaRuotare.Index]
TemiDaRuotare.List[TemiDaRuotare.Index] = TemiDaRuotare.List[TemiDaRuotare.Index - 1]
TemiDaRuotare.List[TemiDaRuotare.Index - 1] = t
END
ma non ha funzionato. :-( Idee?