views:

8

answers:

0

Code i have used.

For j = 0 To dataset4Category(i).Tables.Count - 1
                    Dim Finder As Integer = Decimal.Floor(((dataset4Category(i).Tables(0).Rows.Count) / 30))
                    key = dataset4Category(i).DataSetName
                    name = Space(1) & StrConv(dataset4Category(i).Tables(0).TableName, VbStrConv.ProperCase) & Space(4)
                    myTabControl.TabPages.Add(key, name)
                    myTabControl.TabPages(j).Tag = 0

                    myTabControl.TabPages(j).BackColor = color.Aqua
                    myTabControl.TabPages(j).BackgroundImage=My.Resources.apple_desktop

                Next

Inthis this code it sets only back-color for the first tab-pages that created Dynamically...??