-
Notifications
You must be signed in to change notification settings - Fork 55
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Using WebView2 with tab control #5122
Comments
I have a webbrowser-like app with multiple webviews sharing the same location on the window, a tab control selection hides all webviews except one. But should say that I use a quite specific environment: WinForms dll in Clarion exe (Clarion is a win32 language and IDE). |
@mikeduglas |
Hi @ajtruckle, Using one WebView2 instance per tab can be effective for better isolation and control, especially with up to 5 tabs. Create a WebView2 instance for each tab and handle the |
Thanks for the input. I don't need to handle But the problem I am having is using these browser controls inside The I think I can get the first control created but the second two fail. |
I made progress. But when I click the second tab all I see is a white rectangle and not the url I asked it to navigate to. |
I might have it working. I added:
And testing:
Let me me continue. |
I have it working. I need to tidy up the code now. The only other aspect with this dialog is that for the large icons, I re-use my main toolbar resource and only need to use 3 of the icons in that toolbar. Can we do that? |
At the moment I have a tab control bar and one browser control independent of the tab control.
Based on selected tab I render different data in the browser control.
I would like to know if it is a bad idea to have one webview2 per tab page as a child. I have at most 5 tabs.
I would like advice please, because until now I only have one instance.
Win32
The text was updated successfully, but these errors were encountered: