Potresti usare la proprietà ActiveControl, in questo modo:
GotFocus è un evento, non una proprietà.codice:Dim tb As TextBox If TypeOf Me.ActiveControl Is TextBox Then Set tb = Me.ActiveCOntrol tb.Text = tb.Text & "1" End If
Potresti usare la proprietà ActiveControl, in questo modo:
GotFocus è un evento, non una proprietà.codice:Dim tb As TextBox If TypeOf Me.ActiveControl Is TextBox Then Set tb = Me.ActiveCOntrol tb.Text = tb.Text & "1" End If
Chi non cerca trova.