Ive read various way on how to detect if a Windows 10 device is in Tablet Mode, most notably the topic below;

[How can I detect when Window 10 enters tablet mode in a Windows Forms application?](https://stackoverflow.com/questions/31153664/how-can-i-detect-when-window-10-enters-tablet-mode-in-a-windows-forms-applicatio)

I would like to enable/disable Tablet Mode through code (.Net C#) but I cant find any resources to achieve this. Ive tried changing the registry key and sending a HWND\_BROADCAST that a change has occurred but this doesn't initiate the change to tablet mode.

Ive also tried using Spy++ style applications but cant see the messages being sent.

Does a method exist to do this?