Friday, June 6, 2014

Network Client Monitor C# -- Session 1

Now I will show you an example of a Network Client Monitor.

I will split this topic in 4 sessions:
    Session 1:
    - Create the Shell form with a menu strip and a status strip
    - Create a static container (will be the computer)
    - Ping to the computer IP address and set the state (success = green / fail == red)


First we start with an empty windows forms project.


Add a status strip item and a menu strip item to the empty form.
In our example we call it ShellStatusStrip and ShellMenuStrip.









Next we will add a new menu item to the ShellMenuStrip. We call it "Edit"

For the Edit Menu we will create two new menu items called "Modify Computer" and "Add new Computer".




Also to the status strip we will add a new label called "Status"




Now add a groupbox and inside the groupbox we will add a label.
We set the back color to yellow.






Now we will implement the ping command in the Form_Load event.





















We will use our local IP address (127.0.0.1) for this test case.

If we now run the program, we will see that the label will get the color GREEN if the connection(ping) was successful or RED if the connection was fail.






For Session 2:
    - Create a separate thread for the ping command
    - Use MethodInvoker to update the form
    - Implement a XmlSerializer for the configuration


Kind regards,
FreaksOfDeveloper

Blogverzeichnis blogwolke.de - Das Blog-Verzeichnis Icon RSS Newsfeed Verzeichnis Web-Feed.de Paperblog FreakDeveloper Contributes to DaniWeb Blogtotal Foxload TopBlogs.de das Original - Blogverzeichnis | Blog Top Liste

No comments:

Post a Comment