LoginSignup
0
1

More than 3 years have passed since last update.

Windows FormsアプリからWindows 設定を開く

Posted at

機内モードのステータスに応じて設定画面出したくて困ったメモ

URIスキームを指定してLaunchUriAsyncで呼び出せば良さそう。
Windows 設定アプリの起動

だけども、これはWindowsFormsアプリでは使えない。
LaunchUriAsyncがUWPアプリ用。
こまった(´・ω・`)

What package is Windows.System.Launcher in?

Process.Start("ms-settings:network-airplanemode")

これで良いみたい(o・ω・o)

0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1