0

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.

Darth Sucuk
  • 194
  • 2
  • 16

1 Answers1

1

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

Nuisance
  • 286
  • 1
  • 2
  • 15