Quantcast
Channel: .NET Framework Class Libraries forum
Viewing all articles
Browse latest Browse all 8156

Windows Metro App Process Exception

$
0
0

I have started a new process to open a PDF document from my C# desktop app code. The default PDF reader is a Windows Metro App. After starting the process when I tried to retrieve most of the properties of a process like Process ID, Executing Machine Name, Main Window Handle (returns null) etc... it throws an Invalid operation Exception. This is not happening when I start other Desktop apps.To make it clear, I do not want to use any other Windows Desktop app for launching pdf documents. I need to start the Metro App itself.

My main objective is to take the Window Handle and associate some events to that. Please let me know of any possible solution for this problem


Viewing all articles
Browse latest Browse all 8156

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>