Programmatically open charm bar, power bar and start menu with C#

核能气质少年 提交于 2019-12-01 18:03:27
Daniel A. White

I'd bet sending the Windows key (and the other key, as needed), would be sufficient.

Here is another post on how to do so with an API call.

SendKeys.Send and Windows Key

To open...

  • ... the Start Screen - just send the Windows key.
  • ... the Charms - send the Windows key + C.
  • ... the settings Charms bar (closet to the power options) - send the Windows key + I.
Anobik

Since the question was referred in another place I really thing should share the answer to that over her ..

The truth is a charmbar cannot be opened programatically in metro app development for metro you can access various charms menu like settings share.

Here's a full sample for that metro charms

But for c# wpf app

Heres a SO answer and I guess it works :)

open charms c#

This is the answer for the charms bar . Rest two need to search . If some one benifits :)

POWER :

Process.Start("powercfg.cpl"); reference : msdn pow options

AND start menu

Code Project

start menu

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!