Click here to Skip to main content
16,012,166 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
I want to change the text of the default moseOver message ("Close") of the close button of a form.
Is there any way to do it?

(By the close button I mean the button present on the top right corner of the window)

Is there a mouse hover event for that button?
Posted
Comments
[no name] 6-Jun-14 7:16am    
I don't think you can, http://stackoverflow.com/questions/4153339/change-close-button-tooltip
ZurdoDev 6-Jun-14 7:44am    
You would have to write a browser plugin and only if the browser supported that feature. I suggest you post as solution.
[no name] 6-Jun-14 7:49am    
A browser plugin for a Winform application?
ZurdoDev 6-Jun-14 7:50am    
Ah, I misread it. Regardless, I think your link is the solution and should still be posted as such.
kartikguha 6-Jun-14 8:23am    
The link you provided states the solution for just changing the language of the tooltip. I want to alter the text of the tooltip. Anyway thanx for replying :)

You Can do this using Jquery like this:

JavaScript
$(document).ready(function(){

$("#Button1").hover(function(){
   alert("You entered Button!");
   },
   function(){
   alert("You now leave Button!");
 }); 

});
 
Share this answer
 
Comments
[no name] 6-Jun-14 7:48am    
And how exactly is that supposed to work for a Winform application?
ZurdoDev 6-Jun-14 7:51am    
They wanted it for the X button in the upper right corner of the window. And not ASP.Net. (I had misread it too.)
 
Share this answer
 
Comments
kartikguha 6-Jun-14 8:20am    
I dont want to capture the mouse, over any button defined by me, but the default close button of the windows.
Nirav Prabtani 6-Jun-14 10:07am    
remove that windows default button and put your own you can customize it.. :)

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