I used Settings.settings interface in VS2022 to add some user settings and a connection string. But I am unable to read the App Settings.
Reading the connection string works using
string sDBConn = System.Configuration.ConfigurationManager.ConnectionStrings["MissingSamplesGUI.Properties.Settings.DBConn"].ConnectionString;
However, I cannot read the User Settings from the same App.Config file. Using
int iFormTop = (int)System.Configuration.ConfigurationManager["FormTop"];
Does not work. How do I read and write these settings?