c# - Settings randomly not available -


i've started visual c#, surprising success, i've run issue, drives me crazy.

this problem applies i've tried write , i've not yet managed formulate successful google search answer question.

i use tabs form, various tabs "work" plus 1 tab contains bunch of textboxes config data, servername, logins, , on.

i've managed save settings using builtin settings feature.

now here's problem: launch application, access settings tab, enter settings, close application. when restart application previous settings retained. far good.

however, these textboxes contain correct info whenever click on settingstab, return empty string when accessed method. behaviour random, launch application, settings can accessed, close it, restart settings gone, next time they're there gone again.

but, if access settings tab, prior running method fine.

does make sense anyone? define application settings , assign them textboxes in settings tab , save them properties.settings.default.save(); when form closed. i've tried manually loading them form ie: setsqlserver.text = properties.settings.default.setsqlserver; behaviour stays same. method run, prior me clicking on settings tab, randomly receives empty string. when happens textboxes settings tab return empty strings.


Comments

Popular posts from this blog

python - No exponential form of the z-axis in matplotlib-3D-plots -

php - Best Light server (Linux + Web server + Database) for Raspberry Pi -

c# - "Newtonsoft.Json.JsonSerializationException unable to find constructor to use for types" error when deserializing class -