• How to add C# Selected event on tabpage?

    ShikhaTan Member

    I want to display image each tabpages from tabcontrol…

    What is the event on tabpage??

  • Adan Member

    Not 100% sure what you mean. Do you want to show the same image on each tabpage in the control? Please explain.

    To add something to each page at the same time you would just do this given your TabControl is called tabControl1

    TabControl.TabPageCollection pages = tabControl1.TabPages;
                foreach (TabPage page in pages)
                {
                    page.UseVisualStyleBackColor = false;
                    page.BackColor = Color.FromArgb(235, 235, 235);
                    page.ForeColor = Color.FromArgb(35, 96, 147);
                    page.Font = new Font("Tahoma", 9, FontStyle.Regular);
                }
    
Viewing 1 reply thread
  • You must be logged in to reply to this topic.