i have this event that is activated by mouse click,
and on click i pass the control to another sub 'checkserialport()',
and it will check whether serial port is open or closed.
if serial port is currently closed,
i want to use e.cancel = TRUE to cancel the mouse click,
but somehow i am getting this error message:
this is the click event, and error is at the "click" word, which is in bold:
can anyone show me the correct way to do this?
any help is very much appreciated, thank you...
and on click i pass the control to another sub 'checkserialport()',
and it will check whether serial port is open or closed.
if serial port is currently closed,
i want to use e.cancel = TRUE to cancel the mouse click,
but somehow i am getting this error message:
VB.NET:
Error 1 Method 'Private Sub rbDisableGauge_Click(sender As Object, e As
System.ComponentModel.CancelEventArgs)' cannot handle Event 'Public Event Click(sender As
Object, e As System.EventArgs)' because they do not have the same signature.
D:\VB\Projects\Diagnose\DiagnoseII\DiagnoseII\Form1.vb 65 66 Diagnostic
this is the click event, and error is at the "click" word, which is in bold:
VB.NET:
Private Sub rbDisableGauge_Click(ByVal sender As Object, ByVal e As _
System.ComponentModel.CancelEventArgs) Handles rbDisableGauge.[B][COLOR="Red"]Click[/COLOR][/B]
CheckSerialPort()
ResetTextbox()
TxTemp = "15 6 53 2 1 43"
TxBuffer = TxTemp.Split(" ")
ProcessInput(TxBuffer, TxBufferSize)
TransmitData(TxBuffer, TxBufferSize)
Wait(Interval)
ShowRxData(TxBufferSize)
End Sub
can anyone show me the correct way to do this?
any help is very much appreciated, thank you...