Doesn't matter what user wants with this application. Most important thing is adopt application in one day to tablet for this job. But code you give written in c#. Seem most easy way is lock tablet from Windows.
Anyway thanks,
>It shouldn't work that way. The application should adapt to how the user wants to work. However, you may find the answer here
http://stackoverflow.com/questions/16807726/disable-or-prevent-a-page-from-portrait-mode-in-windows-8>
>
>>Hi All,
>>
>>I'm adopting my application to new Windows 8 tablets. I want to force work tablet as portrait with VFP code when my application works. Is that possible?