Click here to Skip to main content
15,887,683 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am working on one windows application where one of the client web application is docked inside this windows application.

It is docked using window handle of application (set parent window command).

ISSUE:

when i click a button on client application in normal IE (not docked) it opens up model dialoge. But when i try to do same when docked, it opens in different tab of IE web page and not as dialoge. This is leading to freezing of entire window application.

Can you help with this how to prevent this behaviour.

What I have tried:

I tried disabling menu bar and tool bar, but it opens in separate IE if i do that.
Posted
Updated 15-Feb-18 6:58am

1 solution

Simple: don't mess with the windows belonging to other applications.

If you want to show a web browser inside your application, use the WebBrowser control (WPF[^] | Windows Forms[^]) to embed the IE rendering engine. (NB: This will be stuck in IE7 rendering mode unless you modify the registry[^].)

Or use something like CefSharp - Fast web browser for WinForms and WPF Apps[^] to embed the Chrome rendering engine.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900