Good Evening,
Hope some of you fine experts can assist me on this, i have an application that i need to save the settings in application settings which is fine however i need them to be exposed in the settings/config file on build.
No issues with normal settings however for each setting i need it to have 3 values, which are 'DDERow','DDECol' and 'DDELength'. there will be about 12 different settings and i dont want to have 12 * 3 settings.
i have been looking at adding custom types to the application settings but struggling to get this achieved by adding a custom type to the property.
Imports System.Configuration
<SettingsSerializeAs(Configuration.SettingsSerializeAs.Xml)> _
Public Class DDESetting
Private _SettingDDERow As Integer
Private _SettingDDECol As Integer
Private _SettingDDELength As Integer
Sub New()
End Sub
Public Property DDERow As Integer
Get
Return _SettingDDERow
End Get
Set(value As Integer)
_SettingDDERow = value
End Set
End Property
Public Property DDECol As Integer
Get
Return _SettingDDECol
End Get
Set(value As Integer)
_SettingDDECol = value
End Set
End Property
Public Property DDELength As Integer
Get
Return _SettingDDELength
End Get
Set(value As Integer)
_SettingDDELength = value
End Set
End Property
End Class
i can now select this in my main application as a setting but it only shows a textbox to put a single value you in, how can i get it so i can add all 3 settings in on the settings page and then serialise it in the config file.
[EDIT]
Expected output:
< settingname>
<DDERow>
<DDECol>
<DDELength>
</settingname>
and i want to be able to access it via the normal
My.Settings
namespace so:
My.Settings.SettingName.DDERow
My.Settings.SettingName.DDECol
My.Settings.SettingName.DDELength
[/EDIT]
Appreciate any help you can give.
I am using VS2010