Image for Label

2 posts, 0 answers
  1. Ganeshram
    Ganeshram avatar
    14 posts
    Member since:
    Feb 2008

    Posted 17 Feb 2008 Link to this post

    How to add image for a label added in panel bar.I can see command button supports a mage,cannot see image property for label.

  2. Boyko Markov
    Admin
    Boyko Markov avatar
    610 posts

    Posted 18 Feb 2008 Link to this post

    Hello Ganeshram,

    Thank you for writing us. There is no built-in way to add an image to a label.

    However, you can use the workaround shown below:

    ImagePrimitive imgPrimitive = new ImagePrimitive();
    this.radLabel4.RootElement.Children[0].Children.Add(imgPrimitive);
    this.radLabel4.ImageList = this.imageList1;
    imgPrimitive.Image =
    this.imageList1.Images[0];

    If you have any other questions please write me back.

    Best wishes,

    Boyko Markov
    the Telerik team


    Instantly find answers to your questions at the new Telerik Support Center
  3. UI for WinForms is Visual Studio 2017 Ready
Back to Top