ho una picturebox nel progetto vb.net, che mi viene richiamata da un datatimepicker con il seguente codice
Private Sub ins_ScadenzaPatente_ValueChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ins_ScadenzaPatente.ValueChanged
ins_ScadenzaPatente.Format = DateTimePickerFormat.Custom
ins_ScadenzaPatente.CustomFormat = "dd/MM/yyyy"
Dim d1, d2 As Date
d1 = ins_ScadenzaPatente.Value
d2 = Now
If DateDiff(DateInterval.Day, d1, d2) > 0 Then
sfondodtp.BackColor = Color.Red
'MsgBox("scaduta")
Else
sfondodtp.BackColor = Color.Lime
End If
End Sub
sfondodtp è la picturebox, volevo sapere se è possibile, nel momento in cui si colora di rosso inserire anche del testo?????