vb.net - Load all my.settings to textboxes in Visual Basic -


i trying load saved my.settings textboxes unable retrieve saved values. here code

dim ctrl control     each ctrl in me.controls         if (ctrl.gettype() gettype(textbox))             dim txt textbox = ctype(ctrl, textbox)             integer = 1 20                 txt.text = my.settings("fp" & i)             next         end if     next 

what proper way it?thanks

generally when reference value stored in settings along lines of ;

my.settings.<name of setting> 

my.settings has item property takes settings propertyname (as string ) parameter allowing either set or relevant value.

so start try following;

dim ctrl control     each ctrl in me.controls         if (ctrl.gettype() gettype(textbox))             dim txt textbox = ctype(ctrl, textbox)             integer = 1 20                 txt.text = my.settings.item("fp" & i.tostring)             next         end if     next 

Comments

Popular posts from this blog

android - Why am I getting the message 'Youractivity.java is not an activity subclass or alias' -

python - How do I create a list index that loops through integers in another list -

c# - “System.Security.Cryptography.CryptographicException: Keyset does not exist” when reading private key from remote machine -