Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9058805
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T14:48:48+00:00 2026-06-16T14:48:48+00:00

I have a WindowsFormsHost that contains a WebBrowser control in a WPF app. My

  • 0

I have a WindowsFormsHost that contains a WebBrowser control in a WPF app. My problem is that if I try to load a website for the first time it is doing it very slow. I also attempted to use the WPF WebBrowser, but it has the same issue.
The problem is the same in a small sample app with just one WebBrowser & in a large one, so none of my functionality is affecting the load time.
In Google Chrome, which I regularly use, I don’t have this problem. Are any properties of the WebBrowser I should consider setting? Is this related to using the WebBrowser in a WPF app? Any suggestions are appreciated.

Thanks.

Simple sample app :

<Window x:Class="WebBrowserIntoWPFConceptTest.MainWindow"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Title="MainWindow" Height="468" Width="840" xmlns:dxr="http://schemas.devexpress.com/winfx/2008/xaml/ribbon" xmlns:dxb="http://schemas.devexpress.com/winfx/2008/xaml/bars">
<Grid x:Name="grid">
    <Grid.ColumnDefinitions>
        <ColumnDefinition/>
        <ColumnDefinition/>
    </Grid.ColumnDefinitions>
    <Grid.RowDefinitions>
        <RowDefinition Height="80*"/>
        <RowDefinition Height="20*"/>
    </Grid.RowDefinitions>

    <!--<WebBrowser Grid.Row="0"
                Grid.Column="0"
                Grid.ColumnSpan="2"
                x:Name="wb"/>-->
    <Button Grid.Row="1" 
            Grid.Column="0"
            Width="50" 
            Height="50"
            VerticalAlignment="Bottom"
            Click="Button_Click"/>
    <Button Grid.Row="1"
            Grid.Column="1"
            Width="50" 
            Height="50" Click="Button_Click_1" />
</Grid>

namespace WebBrowserIntoWPFConceptTest

{
public partial class MainWindow : Window
{
private WindowsFormsHost winFormHost;
System.Windows.Forms.WebBrowser wf_wb;

    public MainWindow()
    {
        InitializeComponent();
        wf_wb = new System.Windows.Forms.WebBrowser();
        winFormHost = new WindowsFormsHost();
        winFormHost.Child = wf_wb;
        Grid.SetColumn(winFormHost, 0);
        Grid.SetRow(winFormHost, 0);
        Grid.SetColumnSpan(winFormHost, 2);
        grid.Children.Add(winFormHost);
    }



    private void Button_Click(object sender, RoutedEventArgs e)
    {
        Uri uri = new Uri("http://www.google.com");
        wf_wb.Navigate(uri);
    }

    private void Button_Click_1(object sender, RoutedEventArgs e)
    {
        HtmlDocument htmlDoc = (HtmlDocument)wf_wb.Document;
    }
}

}

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-16T14:48:49+00:00Added an answer on June 16, 2026 at 2:48 pm

    WebBrowser is wrapper of IE. So if you try IE and it is slow, then the WebBrowser is gonna be slow too. It could be some kind of virus that’s making it slow. So scan your computer with virusscanner.

    I have not heard about such problem. However I’ve had browser problems myself(in IE and mozilla) where page just didn’t load and running virus scans fixed it finally.

    If that didn’t help, check ouf CefSharp project https://github.com/chillitom/CefSharp I would tell you to use that, because it’s more “WPF'”ish. It allows you to do everything with WebBrowser.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a WPF application that is using a WindowsFormsHost control to host a
I have a wpf usercontrol that contains an activex control housed in a windowsformhost.
So, I have a WindowsFormsHost control in my WPF app (hosting a Dundas Chart)
I have a keyboard focus problem with Windows Forms application that hosts WPF UserControls.
Say, I have a WPF program with a Windows Forms control in WindowsFormsHost on
I have a SWF object embedded in a WindowsFormsHost Control inside a WPF window.
I have a ReportViewer control in a WindowsFormsHost tag in my WPF application. When
The WPF control WindowsFormsHost inherits from IDisposable. If I have a complex WPF visual
have a problem. At first look at this HTML <div id=map style=background-image: url(map.png); width:
I have a WPF project where I maintain video ratio, by placing video control

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.