Solved

Components

Posted on 2004-03-29
1
208 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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

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…
Entity Framework is a powerful tool to help you interact with the DataBase but still doesn't help much when we have a Stored Procedure that returns more than one resultset. The solution takes some of out-of-the-box thinking; read on!
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…

758 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

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now