How to exit application or webrowser
Review Code below:
private void Service_OpenCompleted(object sender, System.ComponentModel.AsyncCompletedEventArgs e)
{
if (e.Error != null)
{
ShowServiceWindow("EDAD SERVICE: Service Un-Available",e.Error.Message);
// I want to close the application below. In windows forms. we normally do this.close or application.close
}
}
Loading
David SmithPosted Aug 21, 2011, 1:19 AM
I still working on the requirment to disable or not show the minimize or maximize buttons. cant seem to get that right for some reason
VulpesPosted Aug 18, 2011, 9:27 AM
David SmithPosted Aug 18, 2011, 9:21 AM
Priya LingePosted Aug 18, 2011, 12:19 AM
Please try this,
Here i close the window on Button Click.
private void btnCancel_Click(object sender, RoutedEventArgs e)
{
HtmlPage.Window.Eval("window.close();");
}
HtmlPage.Window.Eval Method ,evaluates a string that contain JavaScript code.
Hope this will help you.
Thanks.
VulpesPosted Aug 17, 2011, 5:56 PM