-1

I am running windows forms,in that forms have some integer.I want to launch UWP app from that form .Already i have UWP and windows forms,then i have to call whenever forms run successfully that time app should launch the integer of form result.

is there any idea for this app launch?

uma raja
  • 1,023
  • 1
  • 7
  • 9
  • 1
    Does this answer your question? [How to launch a Windows Universal App from winform](https://stackoverflow.com/questions/41887366/how-to-launch-a-windows-universal-app-from-winform) – Mrg Gek Dec 16 '19 at 13:04

2 Answers2

1

How to launch UWP app from windows forms using C#

You could use Launcher LaunchUriAsync to launch uwp app from WinForm app. And first we need register protocol for UWP app. For detail steps please refer this document. Then we need call Launcher api from WinForm app. For detail steps you could refer this tutorial.

Nico Zhu
  • 32,367
  • 2
  • 15
  • 36
-1

Have you looked at Process.Start ?

https://learn.microsoft.com/en-us/dotnet/api/system.diagnostics.process.start?view=netframework-4.8

Neil
  • 11,059
  • 3
  • 31
  • 56
  • I looked at process start also.However it does not sole my problem.I have UWP in folder.How i will call that folder from windows form?i launched the app when i click the button – uma raja Dec 16 '19 at 13:26
  • private void btnGetUID_Click(object sender, EventArgs e) { using (Process myProcess = new Process()) { myProcess.StartInfo.UseShellExecute = true; // You can start any process, HelloWorld is a do-nothing example. myProcess.StartInfo.FileName = "E:\\uwp-kio\\car\\carl"; myProcess.StartInfo.CreateNoWindow = false; myProcess.Start(); } } – uma raja Dec 16 '19 at 13:26