
Private Sub TextBox1_KeyPress(ByVal KeyAscii As MSForms.ReturnInteger) If KeyAscii.Value = 10 Then 'sarebbe il codice ascii riferito al tasto invio... Ma lo capisce solo se faccio ctrl + invio [b2] = [b2] + CInt(Me.TextBox1.Value) Unload Me End If End Sub |
Private Sub TextBox1_KeyDown(ByVal KeyCode As MSForms.ReturnInteger, ByVal Shift As Integer)
If KeyCode = vbKeyReturn Then
'tue istruzioni... ma mi sembra una discussione già aperta da qualcu naltro...
End If
End Sub
|
Private Sub TextBox1_KeyDown(ByVal KeyAscii As MSForms.ReturnInteger, ByVal Shift As Integer)
If KeyAscii = 13 Then
[b2] = [b2] + CInt(Me.TextBox1.Value)
Unload Me
End If
End Sub
|
