How to do this

3 posts, 0 answers
  1. Patxi
    Patxi avatar
    70 posts
    Member since:
    Feb 2009

    Posted 25 Jun 2009 Link to this post


    I have got a web and winform pattern with default controls and I´m going to use Telerik controls into them.

    I´m having problem specially with adding them to winforms. Concretely, I have got a picture and I want to use hover on it. If the pointer is over a picture, another picture should be shown (therefore I have 2 pictures, 1 is shown at the beginning and when pointer is over it the image is changed by the other picture, when is not over it the picture 1)). In web application is easy to do it by using style sheet page but I have no idea how to do it in winforms?

    So, how can I do this?could you help with any idea?What do you suggest me?

    Thank you.
  2. Patxi
    Patxi avatar
    70 posts
    Member since:
    Feb 2009

    Posted 26 Jun 2009 Link to this post

    Ok, I have solved it.

    Anyway, thank you for reading it and think about a possible solution.
  3. Victor
    Victor avatar
    1358 posts

    Posted 26 Jun 2009 Link to this post

    Hi Patxi,

    I suggest you spend some time and become familiar with the Windows Forms programming model. In your case there are events that you can utilize. For example the Control class provides MouseEnter and MouseLeave events. You can use those to change the picture in your control. The control you should use is the PictureBox as its purpose is to display images.

    Kind regards,
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
Back to Top