Solved

dynamically created panel needs roolover highlight action..

Posted on 2012-03-15
2
167 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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Suggested Solutions

This tutorial demonstrates one way to create an application that runs without any Forms but still has a GUI presence via an Icon in the System Tray. The magic lies in Inheriting from the ApplicationContext Class and passing that to Application.Ru…
Microsoft Reports are based on a report definition, which is an XML file that describes data and layout for the report, with a different extension. You can create a client-side report definition language (*.rdlc) file with Visual Studio, and build g…
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

830 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