Solved

dynamically created panel needs roolover highlight action..

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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

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…
The ECB site provides FX rates for major currencies since its inception in 1999 in the form of an XML feed. The files have the following format (reducted for brevity) (CODE) There are three files available HERE (http://www.ecb.europa.eu/stats/exch…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

759 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

20 Experts available now in Live!

Get 1:1 Help Now