There is a listbox attachment filter. This code is used to save the settings:
Properties.Settings.Default["Path"] = tbPath.Text; Properties.Settings.Default["SiteName"] = cbxSite.Text; Properties.Settings.Default["MailAdress"] = tbMail.Text; Properties.Settings.Default["MailPassword"] = tbMailPassword.Text; Properties.Settings.Default["Latency"] = Convert.ToInt32(cbxLatency.Text); Properties.Settings.Default["DeleteMails"] = cbDelete.Checked; The question is, I use System.Collections.Specialized.StringCollection in the settings for the filter, but I can not figure out how to save them.
To upload data from settings I use this code:
tbPath.Text = Properties.Settings.Default["Path"].ToString(); cbxSite.Text = Properties.Settings.Default["SiteName"].ToString(); tbMail.Text = Properties.Settings.Default["MailAdress"].ToString(); tbMailPassword.Text = Properties.Settings.Default["MailPassword"].ToString(); cbxLatency.Text = Properties.Settings.Default["Latency"].ToString(); cbDelete.Checked = Convert.ToBoolean(Properties.Settings.Default["DeleteMails"]); And again, I can not figure out how to unload the data type StringCollection.



Properties.Settings.Default["Path"]useProperties.Settings.Default.Path. Strong typing is our everything. In general, read about the casting of types: docs.microsoft.com/ru-ru/dotnet/csharp/programming-guide/types ... ... - Andrew NOP