Link to home
Start Free TrialLog in
Avatar of bussd
bussd

asked on

Infragistics Listbar: How to change item image on mouseover

Hello,

I'm using an Infragistics Listbar and I'm wondering what's the best way to change an item's image when the mouse moves over it.  I tried this:

private void ListBar_MouseMove(object sender, MouseEventArgs e)
{
   System.Windows.Forms.Control c = this.ListBar.GetChildAtPoint(e.Location);
   //then I'll somehow cast c as a listbar item and change the image...
}

but c is always null.  I'm surprised that this functionality isn't already built into the control, but I can't find any useful examples and the help isn't very helpful.  

I'm new to C# but I've been developing in other languages for a while (most recently VB6).

Any help is appreciated.  Thanks!
Avatar of vo1d
vo1d
Flag of Germany image

what is Infragistics Listbar? a thirparty control?
if so, is there a sample control which i can download and check out?
Avatar of bussd
bussd

ASKER

Hi Vo1d,

It is a third party control and you can download a trial at

http://www.infragistics.com/downloads/downloadinfo.aspx?productid=129&type=0 

I haven't used the trial so I'm not sure how it's limited but hopefully it's functional enough to help.
which .net framework do you use? 1.1 or 2.0?
i only have version 2.0, so i hope that they have the same functionality.
i will download it and make a test.
Avatar of bussd

ASKER

I'm also using 2.0

Thanks!
ASKER CERTIFIED SOLUTION
Avatar of vo1d
vo1d
Flag of Germany image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of bussd

ASKER

Wow.  Impressively quick and useful solution.  Thank you!

I'm sure I'll have more questions as this project progresses. :)