Jun 21, 2019 07:29 PM
(This post was last modified: Jun 22, 2019 02:07 AM by Iera Namhorun.)
I tried to display the string into the richtextbox, but always got the same or duplicate string after the second time it was run as in example of displaying a second string.
Example of displaying the first string:
Example of displaying a second string:
code :
Spoiler (Click to View)
I have tried adding
but still there is no change, the second time the scan button is run it will bring up the same two strings.
How do I prevent it from displaying duplicate strings like in the example second string?
I want to display strings like in the example of the first string display.
[FIXED]
I try to use Application.Restart(); to restart Form into its original state as well to prevent displaying the same string again.
And log all the strings to text file using Streamwriter
Example of displaying the first string:
Quote:[21:55:07] - [-] Starting scanning, please wait. . .
[21:55:09] - [-] Finished.
Example of displaying a second string:
Quote:[21:55:07] - [-] Starting scanning, please wait. . .
[21:55:09] - [-] Finished.
[21:55:07] - [-] Starting scanning, please wait. . .
[21:55:09] - [-] Finished.
code :
Spoiler (Click to View)
I have tried adding
Code
if (DisplayTextBox.Text ! = null)
{
DisplayTextBox.Clear();
}How do I prevent it from displaying duplicate strings like in the example second string?
I want to display strings like in the example of the first string display.
[FIXED]
I try to use Application.Restart(); to restart Form into its original state as well to prevent displaying the same string again.
And log all the strings to text file using Streamwriter



