datamasher
Technical User
Hi everyone,
I have a form with small labels on to represent a theatre seating plan. Each label represents a seat number eg. A1, A2 etc. I want to permanently change a label's backcolor from green to red by clicking on it, thus indicating the ticket for that seat has been sold. I set the backcolor of the label to green at design time.
I know how to change the backcolor using the following code :
Note :: this code is in fact VB 2008 express but it is very similar to VB6 ::
and indeed the backcolor changes to red but, as I suspected, if I close the form and then re-open it at a later stage the label backcolor has reverted back to green.
How can I make hold it's new backcolor of red permanently, or is this not possible?
I originally posted in VB6 forum but was kindly directed here with a suggestion that I could use system settings to do this. Have tried, but cannot get the hang of it
Steve
I have a form with small labels on to represent a theatre seating plan. Each label represents a seat number eg. A1, A2 etc. I want to permanently change a label's backcolor from green to red by clicking on it, thus indicating the ticket for that seat has been sold. I set the backcolor of the label to green at design time.
I know how to change the backcolor using the following code :
Note :: this code is in fact VB 2008 express but it is very similar to VB6 ::
Code:
Public Class Form1
Private Sub Label3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Label3.Click
Label3.BackColor = Color.Red
End Sub
End Class
How can I make hold it's new backcolor of red permanently, or is this not possible?
I originally posted in VB6 forum but was kindly directed here with a suggestion that I could use system settings to do this. Have tried, but cannot get the hang of it
Steve