How to close I.E tab with xbap application

79 views Asked by At

I have a xbap application works in I.E. I have a button name close so what I want is when I clicked the close button it close current tab(which include my xbap app).I searched everywhere every site nothing found.

I tried

System.Windows.Forms.SendKeys.SendWait("^W");

but it didn't work.

1

There are 1 answers

3
Nuisance On BEST ANSWER

Just add this in your code Environment.Exit(0);