954,541 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Need noob help please?

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.

TheInfam0usNZ
Newbie Poster
1 post since Jan 2011
Reputation Points: 22
Solved Threads: 0
 

Error says that Appendtext is a method not a property.

log.AppendText(clientLoaded)
__avd
Posting Genius (adatapost)
Moderator
8,648 posts since Oct 2008
Reputation Points: 2,136
Solved Threads: 1,241
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You
View similar articles that have also been tagged: