Solved

dynamically created panel needs roolover highlight action..

Posted on 2012-03-15
2
166 Views
Last Modified: 2012-04-06
Hi I have created a series of panels programatically.
How to I make all of them have a roll over effect?

I can do it with the mousein,mouse out for a predrawn panel put have no idea how to attach an action to a set of dynamically drawn panels!

Thanks
0
Comment
Question by:jellydeal
2 Comments
 
LVL 85

Accepted Solution

by:
Mike Tomlinson earned 500 total points
ID: 37727354
Use AddHandler to wire up the events of the dynamically created panels.
0
 
LVL 17

Expert Comment

by:nepaluz
ID: 37727377
Try setting the color using the Enter and Leave events of the Panel (not sure this works though, panel does not have an OnHover event.)
0

Featured Post

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

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

Article by: Kraeven
Introduction Remote Share is a simple remote sharing tool, enabling you to see, add and remove remote or local shares. The application is written in VB.NET targeting the .NET framework 2.0. The source code and the compiled programs have been in…
Creating an analog clock UserControl seems fairly straight forward.  It is, after all, essentially just a circle with several lines in it!  Two common approaches for rendering an analog clock typically involve either manually calculating points with…
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …

816 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

11 Experts available now in Live!

Get 1:1 Help Now