Define a string variable and modify it after certain code being executed?
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?
There is no right and wrong. There's only fun and boring.Click HERE to join the official MPGH TS3 Server
Currently learning: Lua, C++ and BASH scripting.
I made a group, Join Linux Users if your on Linux!
Define a string variable and modify it after certain code being executed?
Last edited by Renamon Toast Crunch; 06-10-2013 at 05:28 PM.
There is no right and wrong. There's only fun and boring.Click HERE to join the official MPGH TS3 Server
Currently learning: Lua, C++ and BASH scripting.
I made a group, Join Linux Users if your on Linux!
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:
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:Private Sub Report(ByVal data As String) RichTextBox1.AppendText(String.Format("{0}{1}", vbNewLine, data)) End Sub
Code:Report("Loading has begun, 0%")
Renamon Toast Crunch (06-10-2013)