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

VS 2010 label background

$
0
0
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 :
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


Viewing all articles
Browse latest Browse all 27554

Trending Articles



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