Visual Basic 2008 - Organise TabControl, using information from a textfile
Posted on 2010-01-07
I am looking to add a new function to my software.
I have the following list ( servers.txt ). The format of the file is :
COLGATE ASNBTT1 172.22.34.12
BLENDAMED ASNBTT2 172.22.34.13
COLGATE ASNBTT3 172.22.34.14
HUGOBOSS ASNBTT4 172.22.34.15
The first input represents customer name, the next is hostname, and the next is IP address.
When the button SortBtn is clicked, the software must grab the info from the text file and arrange it in TabControl1 in the following way:
CUSTOMERS should be used as TABS, so in this case, TabControl1 should have the following TABS : COLGATE , BLENDAMED , HUGOBOSS
Inside each TAB, there must be created buttons, and the caption of each button must be the server name. For example inside the COLGATE TAB, there should be the following buttons button1.text = "ASNBTT1"
button2.text = "ASNBTT3"
The buttons inside the tabs must be backcolor=color.red ( by default ).
When the user will right click on the tab ( for example on COLGATE ), the software will ping ( by ip, not by hostname ) all the servers in the respective TAB, and the responsive servers will be marked as backcolor=color.green
I know it is a lot to ask but if someone can give any information it would help me a lot.