Panel Header BackColor on MouseHover

Welcome to Wisej Support.
Questions, suggestions and plain old bugs - are all welcome here!
0
0

Hi,

I am trying to look for way on how to change the BackColor of a Panel Header on MouseHover specifically when Collapsed=true but can’t find any. There are MouseEnter, MouseLeave and MouseHover but they all apply to the body of the Panel.

Is it possible or I am just missing something that is not so obvious?

Thanks

 

 

  • You must to post comments
0
0

Hi Luca,

Yes, both MouseEnter and MouseHover work so with MouseLeave. But they only work on the body of the Panel. What I am looking for is an event when the mouse is over the Header of the Panel or thru javascript.

I am using a simple code as:

private void panel2_MouseLeave(object sender, EventArgs e)
{
    panel2.BackColor = System.Drawing.Color.White;
}
 
private void panel2_MouseEnter(object sender, EventArgs e)
{
    panel2.BackColor = System.Drawing.Color.BlanchedAlmond;
}

Thanks and have a nice weekend.
Attachment
  • Luca (ITG)
    Hi Cris, the issue is that MouseEnter and MouseLeave don’t fire when the pointer is over the header? That’s what I have tried. http://demo.wisej.com/apps/paneltest.html
  • Cris
    • Cris
    • Nov 18, 2016 - 6:45 pm
    Hi Luca, I got the same behaviour in my test.
  • You must to post comments
0
0

Hi Cris,

I tried both MouseEnter and MouseHover on the header of a collapsed panel and get the events back in both cases. Are you attaching to the event or using OnMouseHover?

/Luca

  • You must to post comments
Showing 2 results
Your Answer
Post as a guest by filling out the fields below or if you already have an account.
Name*
E-mail*
Attachment
File Name Size
There are currently no files uploaded.
Maximum number of files 1, maximum file size 3.9MB.
Supported file formats: zip pdf gif jpg bmp png cs vb theme json