Apexx 60 Posted October 10, 2017 Share Posted October 10, 2017 Hello, is it possible to add a collection of strings from the settings? I am getting the error, "Constructor on type 'System.String' not found". Link to comment https://wrobot.eu/forums/topic/7330-string-collection-editor-error/ Share on other sites More sharing options...
Apexx 60 Posted October 10, 2017 Author Share Posted October 10, 2017 Initial SettingAttribute [Setting] [Category("Settings")] [DisplayName("Object(s) list")] [Description("")] public List<string> ObjectsList { get; set; } Modified to allow a list of strings entering each item on its own line: [Setting] [Category("Settings")] [DisplayName("Object(s) list")] [Description("")] [Editor(@"System.Windows.Forms.Design.StringCollectionEditor, System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", typeof(System.Drawing.Design.UITypeEditor))] public List<string> ObjectsList { get; set; } Finished result: Link to comment https://wrobot.eu/forums/topic/7330-string-collection-editor-error/#findComment-33338 Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now