Consider the following figure,

Assume that the above picture is representing a two concrete slabs(Two panels
) placed one above another (light gray:panel1
, dark gray: panel2
).
You are the person(Cursor
) asked to stand up on position 1 in light-gray slab, what you will do,
First you will enter into the light gray slab.[panel1.mouseEnter event got fired
] and finally you will reach the positon 1. similarly again you asked to stand up on the position 2 in dark gray slab,
what you will do this time, you will leave the light gray slab [panel1.mouseLeave event got fired
] and then you will enter into the dark gray slab [panel2.mouseEnter event got fired
].
Did you notice.? you had left the light gray slab in order to enter into the dark gray one.
Similarly, Inside a form
, especially on a stack of controls
, One Control's Mouse Enter
should be the previous control's Mouse Leave
.