I have a window that opens a pop up and what i want is open the popup as child window or window on top of another and disable the back window? so that somebody cannot go back and close the Main window.
I tried putting the window top most but still i am able to close the main window.
private void axWebBrowser1_NewWindow3(object sender, DWebBrowserEvents2_NewWindow2Event e)
{
BrowserWindow window = new BrowserWindow();
window.axWebBrowser1.RegisterAsBrowser = true;
window.Visibility = Visibility.Visible;
window.textBox.IsEnabled = false;
window.Height = 550;
window.Width = 600;
e.ppDisp = window.axWebBrowser1.Application;
window.Topmost = true;
}
Does setting the owner of the child window help?