NetReceiveAbort Example for C#

private void LEADDICOMNet1_NetReceiveAbort(int hNet, short nSource, short nReason)
{
   string strMsg;
   strMsg= string.Format("*** NetReceiveAbort Event ***\nSource{0}\nReason{1}", nSource, nReason);
   MessageBox.Show(strMsg);
}