Jump to content

KeyChar, vbBack, Handle


Go to solution Solved by vikcch,

Recommended Posts

Boas gente bem, acabei um programa que estava a fazer, só que também tenho de saber explica-lo pois é para apresentar, e basicamente eu sei o que é que estas linhas que vou deixar fazem mas a partes delas que não entendo, se alguém me poder explicar eu agradecia bastante.

Private Sub TextBox1_KeyPress(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles TextBox1.KeyPress

	If e.KeyChar <> vbBack And "01234567890,".Contains(e.KeyChar) = False Then
		e.Handled = True
	End If

End Sub

Gostaria de saber o que significa

e.KeyChar <> vbBack

e.Handled = True



Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Create New...

Important Information

By using this site you accept our Terms of Use and Privacy Policy. We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.