Use WPF/UWP/WinForms for your UI
Use System.Xml or System.Xml.Linq for Parsing XML data
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Hi everyone,
I'm just starting with Visual 2019 but I'm familiar with C++, but only on hardware devices, not computers!
My goal is to build a Windows Forms Application with C# that does network connection checks and then update a status panel and execute a batch file if needed. For this i created custom label class (graphic formatting etc) and did basic tests.
A timer function is called that does ping one or multiple servers and updates their state with timestamp and red/green/blue label on the form
Now i want to make my application universal, for this i would like to use a .xml file (or other common file) that contains the information, like that:
<servers>
<server>
<text>Server Name 1</text>
<host>SRV1010101 </host>
</server>
</servers>
Then on form load, the application should create a button and some labels for each of the servers in XML, and also ping each server when the timer is elapsed.
Can someone provide help/hints to do this?
Use WPF/UWP/WinForms for your UI
Use System.Xml or System.Xml.Linq for Parsing XML data