ImageHovered Not working

2 posts, 1 answers
  1. Ananthan
    Ananthan avatar
    8 posts
    Member since:
    Mar 2013

    Posted 28 Mar 2013 Link to this post

    I had created a sample project using radwinforms
    Then put rad ribbon bar in the main form.then created a tab and group in the ribbon bar.
    Then i put an imagebuttonelement1 and set properties Image,ImageHoverd.
    Then compiled and execute4d the application .Image is showing fine on the button but when mouse arrow hovered over the button, image not changing .What will i do to change image of button when mouse hovered ?
  2. Answer
    Peter avatar
    1148 posts

    Posted 01 Apr 2013 Link to this post

    Hi Ananthan,

    Thank you for writing.

    We are aware of this issue and it has already been added as a bug report to our Public Issue Tracking System. Feel free to follow this link, where you can add your vote/comment for it. 

    As a workaround you should explicitly set the 
    HoveredImage, ClickedImage and Image properties:
    this.radImageButtonElement1.MouseLeave += new EventHandler(radImageButtonElement1_MouseLeave);
    this.radImageButtonElement1.MouseDown += new MouseEventHandler(radImageButtonElement1_MouseDown);
    this.radImageButtonElement1.MouseHover += new EventHandler(radImageButtonElement1_MouseHover);
    void radImageButtonElement1_MouseHover(object sender, EventArgs e)
        this.radImageButtonElement1.Image = MyHoverImage;
    void radImageButtonElement1_MouseDown(object sender, MouseEventArgs e)
        this.radImageButtonElement1.Image = MyMouseDownImage;
    void radImageButtonElement1_MouseLeave(object sender, EventArgs e)
        this.radImageButtonElement1.Image = MyNormalImage;

    I am sorry for the inconvenience. Should you have any other questions or suggestions, do not hesitate to contact us.

    Kind regards, Peter
    the Telerik team
    WinForms Q1 2013 boasts PivotGrid, PDF Viewer, Chart enhancements and more. Check out all of the latest highlights.
Back to Top