how do you save the value of a variable for later if the application is closed and reopened in winforms, vb.net?
                +1 
                A: 
                
                
              yes by using cookies.
Response.Cookies("userName").Value = "yourvalue"
Response.Cookies("userName").Expires = DateTime.Now.AddDays(2)
But the cookie must be created on that machine
                  Eric
                   2009-08-06 19:37:03
                
              in a windows application not in the browser
                  I__
                   2009-08-06 19:37:46
                i don't think it matters...as long as the cookie is created on the machine the windows form will try to access it on.
                  Eric
                   2009-08-06 19:40:51
                wow very interesting. i didnt know this.
                  I__
                   2009-08-06 19:51:52
                did it work for you?
                  Eric
                   2009-08-06 19:52:20
                this is a great tutorial. however it is not working for me. Form1.BackColor = ColorDialog1.Color            My.Settings.last_color = Form1.BackColor
                  I__
                   2009-08-06 19:45:43
                You need to add the setting explicitly, either on the form or project.  See: http://msdn.microsoft.com/en-us/library/25zf0ze8.aspx
                  Reed Copsey
                   2009-08-06 19:47:40