Hi All,

I am using this to create dynamic buttons at runtime with various colors. When I have a button color "Color [Empty]" in my color variable, I still get a black border on my button. How can I make these buttons invisible?

Code:
            If (IO.File.Exists(filename)) Then
                Dim lines = IO.File.ReadAllLines(filename)
                For Each line In lines
                    Dim Data = line.Split(","c)
                    If (Data.Length > 0 AndAlso Data(0) = ToggleFile) Then
                        TextBox1.Text = "DEFECT MAP"
                        Dim fromTextFile As String = Data(7)
                        Dim color As String = fromTextFile.Split(New Char() {"["c, "]"c})(1)

                        Dim dynamicButton As New Button With {
            .Location = New Point(CInt(Data(2)), CInt(Data(3))),
            .Height = 7,
            .Width = 7,
            .FlatStyle = FlatStyle.Flat,
            .BackColor = Drawing.Color.FromName(color),
            .ForeColor = Drawing.Color.FromName(color)
        }