This is a migrated thread and some comments may be shown as answers.

How to do this

2 Answers 32 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Patxi
Top achievements
Rank 1
Patxi asked on 25 Jun 2009, 03:24 PM
Hello,

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 Answers, 1 is accepted

Sort by
0
Patxi
Top achievements
Rank 1
answered on 26 Jun 2009, 12:08 PM
Ok, I have solved it.

Anyway, thank you for reading it and think about a possible solution.
0
Victor
Telerik team
answered on 26 Jun 2009, 06:32 PM
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,
Victor
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.
Tags
General Discussions
Asked by
Patxi
Top achievements
Rank 1
Answers by
Patxi
Top achievements
Rank 1
Victor
Telerik team
Share this question
or