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.

kvprajapati commented: rep++ ;) First post with [code] tags. +12

Error says that Appendtext is a method not a property.

log.AppendText(clientLoaded)
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.