Nagu
Nagu

Reputation: 5114

tabcontrol background image in winforms

Hi I want to put background image from tabcontrol in c# winforms. How can i change it?

Upvotes: 1

Views: 7320

Answers (1)

Thomas Levesque
Thomas Levesque

Reputation: 292765

You can't put a background image on the TabControl itself ; the TabControl.BackgroundImage property exists, but has no effect.

However you can put a background image on a page of the TabControl :

tabControl1.TabPages[0].BackgroundImage = Image.FromFile(fileName);

Upvotes: 2

Related Questions