Click here to Skip to main content
15,909,953 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Respected All,

i am making winform application like visual studio IDE in that app i have taken 1 button on form and handling button_hover and button_leave events and on button_hover event i am showing panel to their right and inside the panel i have taken button and label but when i am on hover of label then panel is disable same thing happend\s with textbox when on hovering textbox panel disables.....here i have to check if mouse cursor is on label then Enable panel// SO HOW CAN I DO THAT...i have check label events inside panel but doesnt work.....So any help...
Posted
Updated 25-Nov-11 8:28am
v3
Comments
Sergey Alexandrovich Kryukov 25-Nov-11 5:32am    
What is exact type of Label? There are many. Tag it: Forms, WPF, ASP.NET, what?
--SA
BillWoodruff 25-Nov-11 19:42pm    
I can't follow what you are trying to do here. Please describe exactly what I should do in Visual Studio to observe the kind of behavior you want to be able to re-create.

Write following code on MouseHover event of label as

C#
private void label1_MouseHover(object sender, EventArgs e)
     {
         MessageBox.Show("Your mouse cursor is on level...");
     }
 
Share this answer
 
Comments
[no name] 25-Nov-11 5:37am    
i am making winform application like visual studio IDE in that app i have taken 1 button on form and handling button_hover and button_leave events and on button_hover event i am showing panel to their right and inside the panel i have taken button and label but when i am on hover of label then panel is disable same thing happend\s with textbox when on hovering textbox panel disables.....here i have to check if mouse cursor is on label then Enable panel// SO HOW CAN I DO THAT...i have check label events inside panel but doesnt work.....So any help....
Try using the below javascript:

<script type="text/javascript" src="jquery.js">
<script type="text/javascript><br mode=" hold=" />$(document).ready(function() {<br mode="></script>
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900