tuxduino...
actually i got the coding from other pages.
Private Sub Button1_Click(ByVal sender As Object, ByVal _e As EventArgs) Handles Button1.Click
If Button1.Text = "Close" Then ' will fail it button's text is " Close" (notice the extra space)
SerialPort1.Close()
Button1.Text = "Open"
Else
If Not SerialPort1.IsOpen Then SerialPort1.Open() ' where is endif ?
Button1.Text = " Close" ' one extra space!( meaning of the code)?
End If// here is the end if .
End Sub
hope u can help me in understanding me the button.text= "close" code..i can get ur comment on that code.