DeleteTag Example for VB.NET

'LEADDICOM1 is a DICOM Dataset defined outside this method
Private Sub TestDeleteTag()
   Dim lCode As Integer

   On Error GoTo DELETETAGERROR
   lCode = 131073
   'move to the selected Tag
   LEADDICOM1.FindTag(lCode)
   'delete it
   LEADDICOM1.DeleteTag()
   Exit Sub

DELETETAGERROR:
   MessageBox.Show("Error")
End Sub