开发者

C# - Disable balloon tips [closed]

开发者 https://www.devze.com 2023-04-11 23:04 出处:网络
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical andcannot be reasonably answered in its current form. For help clari
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. 开发者_运维问答 Closed 11 years ago.

I would like to create an application which disables balloon tips in my system by editing the registry (there is another way?). But I want that it would be take place immediatly and without restart/log off.

Thank you!


You have to set the value of EnableBalloonTips in the registry key HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced to 0. You can use the RegistryKey class for that.

Then you can use a method to exit Windows Explorer and start Windows Explorer again using Process.Start.

However you should ask for user's permission before you restart Windows Explorer.

0

精彩评论

暂无评论...
验证码 换一张
取 消