1

Hey, I'm trying to make it so when my program is started, a text box ("log") automatically says:

"Placeholder1" *1 sec delay
"Placeholder2" *1 sec delay
"Placeholder3"

I have set the text box to say "Placeholder1" using properties but I am having problems coding the rest. I know this may be easy but I just started in VB so tolerance please =P

This is my code:

Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick
        Timer1.Enabled = True
        Timer1.Interval = 1000

        Dim clientLoaded As String
        Dim intro As String
        Dim loaded As Boolean

        clientLoaded = "Placeholder2"
        intro = "Placeholder3"

        If loaded = False Then
            log.AppendText = clientLoaded
            loaded = True
        Else
            log.AppendText = intro
        End If

    End Sub

When I attempt to run it I get this error:

Argument not specified for parameter 'text' of 'Public Sub AppendText(text As String)'.

Any help will be appreciated,
thanks in advance.

Votes + Comments
rep++ ;) First post with [code] tags.
2
Contributors
1
Reply
2
Views
6 Years
Discussion Span
Last Post by __avd
This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.