Jump to content

Recommended Posts

Posted

Boas pessoal! Estoua pensar em fazer uma informação apassar em rodapé, ou seja, vai passando da esquerda para a direita. Tive a pensar e fiz o seguinte codigo:

Public Class Form1

    Dim A As Integer

    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click

        Do Until A < 0

            A = A - 1

        Loop

        Label1.Location = New Point(A, 900)

    End Sub

    Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load

        Label1.Location = New Point(1200, 900)

    End Sub

End Class

O problema, é que a label vai do lado direito ao laod esquerdo em menos de nada, o que eu acho que impossibilita de todo a leitura do rodapé! LOOL Ensinem-me  afazer um rodape de outra maneira, ou em tao melhorar esta ideia que eu tive XD

Abraços pessoal ;D

Posted

Desculpa não testei! Aqui vai

        A = 200

        Do Until A < 0

            A = A - 1

            Label1.Location = New Point(A, 900)

            System.Threading.Thread.Sleep(10)

            Application.DoEvents()

        Loop

Posted

    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click

        Do Until A < 0

            A = A - 1

            Label1.Location = New Point(A, 900)

            System.Threading.Thread.Sleep(10)

            Application.DoEvents()

        Loop

    End Sub

    Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load

        Label1.Location = New Point(1200, 900)

Posted
        A = 1200
        Do While A <> 0
            Do Until A < 0
                A = A - 1
                Label1.Location = New Point(A, 900)
                System.Threading.Thread.Sleep(10)
                Application.DoEvents()
            Loop
            A = 1200
        Loop
    End Sub

Fiz assim, e tá mais ou menos 😛

  • 1 year later...
Posted

o Uncio problema é que quando o incio do texto chega a margem esquerda, desaparece todo o texto, a e aminha dieia era ir desaparecendo, tal equal como no telejornal!

Por acaso ninguém sabe como fazer isto? Queria fazer um efeito parecido.

Abraço

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.