|
Rank: Member Groups: Member
Joined: 6/16/2014 Posts: 25
|
Hi, is there any possibility to create the webview object without a handle of a picture box. Just like the WebControl or WebView does, if it becomes visible. Maybe call the Create Method without a handle or IntPtr.Zero.
Best regards, Michael
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,229
|
Hi, Yes. It is possible. You can either pass IntPtr.Zero to its Create method, or create an invisible WebView with ThreadRunner object: http://www.essentialobjects.com/doc/webbrowser/start/webview_no_ui.aspxThanks!
|
|
Rank: Member Groups: Member
Joined: 6/16/2014 Posts: 25
|
Hi, I use the demo version inside a wpf application. I've tryed to create it with IntPtr.Zero, but the webview seems to be created only after it becomes visible for the first time. I have a TabControl where the WebControl with a webview is on the second tab, that is not visible at start. Then I click on a button on the first tab that shows the 2nd tab and navigates to a url. It works only, when I make the browser tab visible at first. This can be verified with spy++. The sub window is only created, after the tab gets visible. The only difference is, that the license window is displayed now at startup :) . Thanks and best regards, Michael
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,229
|
Hi,
You must be confusing two different things. The TabbedBrowser uses EO.WebBrowser.Wpf.WebControl to create WebView. The WebControl's window gets created when the tab becomes visible and as soon as it's window is created it will call WebView.Create with the new window handle. That behavior is built-into WebControl so you have no way to override that part. This is the typical on-screen mode use. In this case you will see your WPF window contains the WebControl window and the WebControl window contains the browser window with Spy++.
When you call WebView.Create(IntPtr.Zero), you are creating a WebView in off-screen mode --- that is, it has absolutely nothing with anything on your screen, such as your tabs. In this case, the browser window is NOT associated to your WPF application window tree anyway. So you shouldn't be able to see anything at all with Spy++ from your application's window tree.
As to the license, you can revisit your license key to see if you are eligible for the new version. We provide free one year upgrade when you purchase the product, so if you are still within one year then you should be able to use the new version at no additional cost. If you are already beyond one year, then you must renew your order in order to use the new version.
Thanks!
|
|