Quantcast
Channel: Windows Forms General forum
Viewing all articles
Browse latest Browse all 12583

Closing a Metro app from Windows Form.

$
0
0

Hi! I opened Xbox Music App from click on picture box using following code:

private void pictureBox2_Click(object sender, EventArgs e)
        {
            SendKeys.Send("^{ESC}");
            SendKeys.Send("Music");
            SendKeys.Send("{ENTER}");
        }

Now. I need to close that app with hit on ESC button from keyboard and I should return back to my active windows form.

Any Help??


Viewing all articles
Browse latest Browse all 12583

Trending Articles



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