code:If My.Computer.Network.Ping("xx.xxx.xx.xx") Then PictureBox1.Show() PictureBox10.Hide() Else PictureBox10.Show() PictureBox1.Hide() End If