NetReceiveReleaseRequest Example for VB.NET

'LEADDICOMNet1 is a predefined LEADDicomNet object
'This example uses the predefined variable "List2" of type "ListBox" from ".NET Framework".
Private Sub LEADDICOMNet1_NetReceiveReleaseRequest(ByVal hNet As Integer) Handles LEADDICOMNet1.NetReceiveReleaseRequest
   Dim out As String
   'Release Request was received
   out = "Release Request was received"
   List2.Items.Add(out)
   LEADDICOMNet1.SendReleaseResponse(hNet)
End Sub