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
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.