<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Il giorno gio 23 gen 2020 alle ore 21:50 Jussi Lahtinen <<a href="mailto:jussi.lahtinen@gmail.com">jussi.lahtinen@gmail.com</a>> ha scritto:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>I currently use Settings statically without any errors.</div><div><br></div><div>Jussi<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Jan 23, 2020 at 9:03 PM T Lee Davidson <<a href="mailto:t.lee.davidson@gmail.com" target="_blank">t.lee.davidson@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">The documentation[0] seems to indicate that Settings can be used statically. However, when I try to do that according to the <br>
examples, I get a "Null object" error.<br></blockquote></div></blockquote><div><br></div><div>Have you tried this ? :</div><div><br></div><div>Public Sub Form_Open()<br><br> txtUserName.Text = Settings["User/Name", Null]<br> txtUserMail.Text = Settings["User/Email", Null]<br><br>End<br><br>Public Sub Form_Close()<br> <br> Settings["User/Name"] = txtUserName.Text<br> Settings["User/Email"] = txtUserMail.Text<br> <br>End</div><div><br></div><div>Regards</div><div>Gianluigi<br> </div></div></div>