Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27348

VS 2010 I used to know how to do this.

$
0
0
It's been a while since I have used VB and I remember being able to save something when the program closed and when I opened the program up again it would be exactly like I left it. I think I used settings for this.

Anyways, I want to be able to click on text and turn it into a different color, and then when the program closes it save that color and when I open the program up again the color will be the same.

For instance, I have red text and clicking on Label1 will change the text to green. Now, when I close the program and open it up, how do I make the green text stay? Thank you very much!
Code:

Private Sub Label1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Label1.Click
        Label1.ForeColor = Color.Green
    End Sub


Viewing all articles
Browse latest Browse all 27348

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>