none
List of TabPage in Tab Conrol RRS feed

  • Question

  • Hi 

    I have to change runtime the background color of all tabPage in a tabcontrol

    i need something like

    FOR EACH Tb as TabPAge in ?????

    tb.backgroundColor = color.lightGrey

    next

    Tuesday, December 12, 2017 8:38 PM

Answers

  • Hi

    Something like this

    For Each tb As TabPage In TabControl1.TabPages
        tb.BackColor = Color.LightGray
    Next


    Regards Les, Livingston, Scotland


    • Edited by leshay Tuesday, December 12, 2017 8:54 PM changed variables to suit OP
    • Marked as answer by Claudio111 Tuesday, December 12, 2017 8:56 PM
    Tuesday, December 12, 2017 8:53 PM