Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1290
Programmatically assign an image to a tab
posted

Hi,

 

How do I set an image to a tab programmatically if I have the filepath of the .png file?

Parents
No Data
Reply
  • 37774
    Verified Answer
    posted

    Just set the Image of the Appearance property:

    this.ultraTabControl1.Tabs[0].Appearance.Image = Image.FromFile(@"C:\MyImage.png");

    -Matt

Children
No Data