Hi,
i have an object that it would refer to the label thats written in the text box and after that THE OBJECT would be the label and i want to change the label background heres some code :
i have an object that it would refer to the label thats written in the text box and after that THE OBJECT would be the label and i want to change the label background heres some code :
Code:
Dim file As System.IO.StreamWriter
Dim dayX As String
Dim seatsId As String
Dim seatsob As New Label
dayX = cmbDayvisiting.Text
seatsId = "lbl" & TxtID.Text
seatsob.text = seatsId.ToString()
file = My.Computer.FileSystem.OpenTextFileWriter("C:\Users\Amir\Documents\test.txt", True)
file.WriteLine(dayX)
file.Close()
seatsob.background = color.red