Stuck on something...
I added a new setting for another chart control feature and it won't change. Can't seem to figure out what it lies for code. Part of the problem seems to be string vs integer.
The setting is another datavisualization deal. startfromzero
Form Load .... Populates the cbo just fine
Following the example code you provided I created this
I fiddled with several variations of the code in that sub but can't make it work. Selecting any of the options in the combobox has no effect.
I added a new setting for another chart control feature and it won't change. Can't seem to figure out what it lies for code. Part of the problem seems to be string vs integer.
The setting is another datavisualization deal. startfromzero
Form Load .... Populates the cbo just fine
VB.NET:
Me.cboChartAreaColor.DataSource = [Enum].GetNames(GetType(KnownColor))
'allow chart scale changes
Me.CboChartScale.DataSource = [Enum].GetValues(GetType(StartFromZero))
Me.CboChartScale.SelectedItem = My.Settings.ChartScale
Following the example code you provided I created this
VB.NET:
Private Sub CboChartScale_SelectionChangeCommitted(ByVal sender As Object, ByVal e As System.EventArgs) Handles CboChartScale.SelectionChangeCommitted
'get value
Dim value = CType(CboChartScale.SelectedValue, StartFromZero)
'update settings with new value
My.Settings.ChartScale = value
End Sub
I fiddled with several variations of the code in that sub but can't make it work. Selecting any of the options in the combobox has no effect.