Jump to content
  • Revista PROGRAMAR: Já está disponível a edição #60 da revista programar. Faz já o download aqui!

security

conversão de texto

Recommended Posts

security

boas pessoal...

alguem me pode arranjar uma função para converter todo o texto de uma textbox para maiusculas???


"Innovation distinguishes between a leader and a follower." Steve jobs.

Share this post


Link to post
Share on other sites
security

quero converter para maisuculas todos oa caracteres que estejam numa textbox. o codigo que esta no post anterior da erro.


"Innovation distinguishes between a leader and a follower." Steve jobs.

Share this post


Link to post
Share on other sites
security

tenho de por o nome da textbox.toUpper() certo???

diz-me que é necessario um Imports System.Windows.Forms.TextBox


"Innovation distinguishes between a leader and a follower." Steve jobs.

Share this post


Link to post
Share on other sites
paulo silva


        MsgBox(Textbox1.Text.ToUpper())

Assim tem de dar meu caro  :thumbsup:

Qualquer dúvida à disposição.

Cumprimentos Paulo Silva

Share this post


Link to post
Share on other sites
security

mas se eu colocar esse codigo assim:

Private Sub TextBox13_Leave(ByVal sender As Object, ByVal e As System.EventArgs) Handles TextBox13.Leave
        TextBox13.Text.ToUpper()
    End Sub

nao funciona?! isto é o meu objectivo era que ao mudar o cursor de textBox para textBox o texto se converte-se logo.


"Innovation distinguishes between a leader and a follower." Steve jobs.

Share this post


Link to post
Share on other sites
Pwyll
Private Sub TextBox13_Leave(ByVal sender As Object, ByVal e As System.EventArgs) Handles TextBox13.Leave
        TextBox13.Text = TextBox13.Text.ToUpper()
    End Sub

Share this post


Link to post
Share on other sites
paulo silva

Private Sub TextBox13_Leave(ByVal sender As Object, ByVal e As System.EventArgs) Handles TextBox13.Leave
        TextBox13.Text = TextBox13.Text.ToUpper()
    End Sub

Exactamente como o Pwyll tem se quiseres que mostre na mesma textbox senão só tens de dizer onde queres isso.

Cumprimentos Paulo Silva

Share this post


Link to post
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

×

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.