AnsweredAssumed Answered

Winform reloaded

Question asked by alanR on Mar 23, 2018
Latest reply on Mar 23, 2018 by John Messinger

Hi ,


im after creating a winform with textboxs and AFComboBoxs,  when i close the form the inputted  values save to a configString. When i reopen that form  the values for the for the textbox reappear but the values picked for the combobox are set back to default, how can get it to display the previously chosen combobox values ?


My code snippets;

  private void LoadUI()
            txtTargetAttribute.Text = dataReference.TargetAttributeName;
            cmbByTimeRange.Text = dataReference.TimeRange;


private void LoadComboBoxes()

  cmbByTimeRange.DataSource = Enum.GetValues(typeof(AFSummaryTypes));