I used 2 buttons and a textbox , would have preferred to use only one button and have the text change as to what state its in , but don't how,
but this works fine for me.
Code for connect button to enable subscriptions
Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button6.Click
EthernetIPforPLCSLCMicroCom1.DisableSubscriptions = "False"
TextBox1.Text = EthernetIPforPLCSLCMicroCom1.IPAddress
End Sub
Code for connect button to disable subscriptions
Private Sub Button2_Click(sender As Object, e As EventArgs) Handles Button7.Click
EthernetIPforPLCSLCMicroCom1.DisableSubscriptions = "True"
TextBox1.Text = EthernetIPforPLCSLCMicroCom1.IPAddress
End Sub