Solved

Components

Posted on 2004-03-29
1
212 Views
Last Modified: 2010-07-27
Hi guys,

in the middle of building my own component(a button) but need some info, i need some guidance on the mouse over effect, in other words when my mouse pointer goes over the button i want to be able to change the color of the button and info on the click event.

cheers guys

-
David
0
Comment
Question by:ziwez0
1 Comment
 
LVL 4

Accepted Solution

by:
Jarodtweiss earned 150 total points
ID: 10702667
The simplest way to do that is probably to :
- Inherit from the Button class
- Override the OnClick method to provide your info
- Override the OnMouseEnter, OnMouseLeave and OnMouseOver to set your color

0

Featured Post

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Extention Methods in C# 3.0 by Ivo Stoykov C# 3.0 offers extension methods. They allow extending existing classes without changing the class's source code or relying on inheritance. These are static methods invoked as instance method. This…
This article describes a simple method to resize a control at runtime.  It includes ready-to-use source code and a complete sample demonstration application.  We'll also talk about C# Extension Methods. Introduction In one of my applications…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

679 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question