Ripulire i controlli NOTHING






'helper method to clean up the ui objects before moving to another action

Public Sub PrepareUI()

Grid1.DataSource = Nothing
Grid1.DataMember = String.Empty
Grid2.DataSource = Nothing
Grid2.DataMember = String.Empty
BoundCombo.DataSource = Nothing
BoundCombo.DisplayMember = String.Empty
BoundCombo.ValueMember = String.Empty
OutputText.Text = String.Empty
RemoveHandler Grid1.CurrentCellChanged, AddressOf Me.CurrentCellChangedEventHandler
End Sub










( ripulireicontrollinothing.html )- by Paolo Puglisi - Modifica del 17/12/2023