Dim pv As WinForm.PictureViewer = e.Form.Controls("PictureViewer1")Dim fl As String = pv.SelectedItemIf fl > "" Then pv.DeleteFile(fl)End If