Hi guys,
I have 2 textboxes and one button called "Start PING". I have a textfile with, lets say 100 LAN IP-adresses that I start to ping. All adresses that answers on ping is typed as a new row in textbox 1 with the IP-adress and the response time in mSec.
All IP-adresses that not response to ping, I write as a new row in a multiline textbox, textbox2.
Now to my question:
Lets say that the IP-adresses 10.10.10.10 and 11.11.11.11 does not answers to ping, the folling rows are added in textbox2:
10.10.10.10 2010-02-05 12:02:55
11.11.11.11 2010-02-05 14:35:00
When I make a new Ping and the adress 10.10.10.10 answers to ping, I will write that line into textbox1, and I want to delete the row in textbox2 but still have the latest result for 11.11.11.11.
Shortly explained: How can i delete a complete row in a textbox based on the IP-adress? I can easily delete the IP-adress, but I want to delete all characters on the same row too.
Does anyone know how I can do this?
Thanks in advance!
I have 2 textboxes and one button called "Start PING". I have a textfile with, lets say 100 LAN IP-adresses that I start to ping. All adresses that answers on ping is typed as a new row in textbox 1 with the IP-adress and the response time in mSec.
All IP-adresses that not response to ping, I write as a new row in a multiline textbox, textbox2.
Now to my question:
Lets say that the IP-adresses 10.10.10.10 and 11.11.11.11 does not answers to ping, the folling rows are added in textbox2:
10.10.10.10 2010-02-05 12:02:55
11.11.11.11 2010-02-05 14:35:00
When I make a new Ping and the adress 10.10.10.10 answers to ping, I will write that line into textbox1, and I want to delete the row in textbox2 but still have the latest result for 11.11.11.11.
Shortly explained: How can i delete a complete row in a textbox based on the IP-adress? I can easily delete the IP-adress, but I want to delete all characters on the same row too.
Does anyone know how I can do this?
Thanks in advance!