Jump to content

maskedtextbox foi selecionado


Recommended Posts

Não sei se isto faz o que queres, mas penso que sim:

Dim AllText As String 
    For i As Integer = 0 To AllText.Length - 1
	    Select Case AllText.Substring(i, 1)
		    Case ControlChars.Tab
		    Case ControlChars.Lf
		    Case ControlChars.Cr
		    Case " "
		    Case Else
			    VisibleCharacters += 1
	    End Select

    Label1.Text = String.Format("Total: {0} characters ({1} characters are visible).", AllText.Length, VisibleCharacters)

Mas tenho a impressão que dá para fazer de uma maneira mais simples, mas agora não me lembro qual é.. 🙂

Férias! Estou por aqui: http://maps.google.p...001549&t=h&z=20 (a bulir claro está!)

Nunca mais é verão outra vez.. :)

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.