AdvancedHMI Software

General Category => Open Discussion => Topic started by: Darrell on December 12, 2016, 07:43:21 PM

Title: ping IP from AHMI
Post by: Darrell on December 12, 2016, 07:43:21 PM
is there  simple way to ping an IP from a button in AHMI , Ive seen spread sheets where you enter and IP and it opens ping.exe and returns the info to the spreed sheet
Title: Re: ping IP from AHMI
Post by: Archie on December 12, 2016, 08:11:47 PM
Add a button to the form, double click the button and add this code:

        Dim pinger As New System.Net.NetworkInformation.Ping
        Dim result As System.Net.NetworkInformation.PingReply = pinger.Send(System.Net.IPAddress.Parse("192.168.0.101"))

        MsgBox(result.Status.ToString)
Title: Re: ping IP from AHMI
Post by: Godra on December 16, 2016, 09:13:23 PM
You might also try this new control:

http://advancedhmi.com/forum/index.php?topic=1562.0