MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.
Public Sub LoadCombo_Direction() Try Dim ds As New DataSet InitializeErrorClass(EH) BL.LoadCombo_Direction(EH) cmbDirection1.DataSource = Nothing cmbDirection2.DataSource = Nothing If EH.DataSet.Tables(0).Rows.Count > 0 Then ds = EH.DataSet RemoveHandler cmbDirection1.SelectedIndexChanged, AddressOf cmbDirection1_SelectedIndexChanged cmbDirection1.DisplayMember = EH.DataSet.Tables(0).Columns(1).ColumnName cmbDirection1.ValueMember = EH.DataSet.Tables(0).Columns(0).ColumnName cmbDirection1.DataSource = EH.DataSet.Tables(0) cmbDirection1.SelectedIndex = -1 cmbDirection2.DisplayMember = ds.Tables(0).Columns(1).ColumnName cmbDirection2.ValueMember = ds.Tables(0).Columns(0).ColumnName cmbDirection2.DataSource = ds.Tables(0) cmbDirection2.SelectedIndex = -1 AddHandler cmbDirection1.SelectedIndexChanged, AddressOf cmbDirection1_SelectedIndexChanged End If Catch ex As Exception EH.ErrorMessage = "LoadCombo_Direction() - " & ex.Message & "~E" End Try EH.ProcessMessages(Me, sbr, EH.ErrorMessage) End Sub
Add your voice to the tech community where 5M+ people just like you are talking about what matters.
Join the community of 500,000 technology professionals and ask your questions.