HelpVisual Output.

Posts 1–4 of 4 · Page 1 of 1
Visual Output.
Im trying to figure out how to make a visual output (i dont know what to call it) so like instead of a progress bar you see a text box that is populated with each step the program is doing and the completion rate. So like when you click on more info when your installing something and it shows you the output, line by line. What is this called?
Define a string variable and modify it after certain code being executed?
Quote Originally Posted by Blubb1337 View Post
Define a string variable and modify it after certain code being executed?
No, like in this video when he clicks on show Details. It visually shows you what is happening. At the 1 Min 47 Second Mark.
Alright, I see what you want to achieve. So given you already have a textbox (or richtextbox, probably better as far as formatting goes), you will probably want to write a method you can call whenever you want to append the rich/textbox.

To do this, a simple method could be:

Code:
Private Sub Report(ByVal data As String)
        RichTextBox1.AppendText(String.Format("{0}{1}", vbNewLine, data))
End Sub
Then whenever you want to add a line to your "visual output", or log, simply call the function with the appropriate data as the parameter or argument, like so:

Code:
Report("Loading has begun, 0%")
Posts 1–4 of 4 · Page 1 of 1

Post a Reply

Similar Threads

Tags for this Thread

None

Talk with us