I have a textbox with the multiline property set to true. I am using the text box to display the general time every two seconds.
My problem is that when I have the text box completely filled with time status info, I can't seem to see the time info after that point. I tried adding a vertical scroll bar, but that just moved the scroll bar up during runtime and the latest time was not available to the user.
Ideally, once the text box is filled with info(up to the last line), I would like to have the first line of the textbox disappear,move rest of the data up by a line, so that there is one line of space at the bottom for the next time info. This way, I can always see the latest time status(real time) at the last line of the textbox.
I hope I was clear in explaining my problem.
Following is the code. I have a textbox placed on a form, its multiline property set to true, I have a timer in the form with an interval of 2 seconds, and I am trying to display the general time every 2 seconds.
Private Sub Timer1_Timer()
Text1 = Text1 & Format(Now, "General Date") & vbCrLf
Thanks for the help