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 8834223
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T08:57:53+00:00 2026-06-14T08:57:53+00:00

I am (still) using Visual Studio 2005 and wanting to embed a webkit browser

  • 0

I am (still) using Visual Studio 2005 and wanting to embed a webkit browser within a c# winforms application, preferably as a winforms control.

I am looking for a simple example of either CefGlue or CefSharp to get started with, along with the minimum necessary dlls. I cannot make any sense of the CefSharp sample on GitHub.

  • 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-14T08:57:54+00:00Added an answer on June 14, 2026 at 8:57 am

    It is pretty easy however very sadly documented.

    To get it working, I made a new Forms application and added a toolstripContainer to my form. Also added references to CefSharp.dll and CefSharp.WinForms.dll to my project.

    This is my code for my class:

    public partial class frmBrowser : Form, IRequestHandler
    {
        private readonly WebView web_view;
    
        public frmBrowser()
        {
            InitializeComponent();
            web_view = new WebView("http://stackoverflow.com", new BrowserSettings());
            web_view.Dock = DockStyle.Fill; 
            web_view.RequestHandler = this;
            tsContainer.ContentPanel.Controls.Add(web_view);
        }
    
        #region IRequestHandler Members
    
        bool IRequestHandler.OnBeforeBrowse(IWebBrowser browser, IRequest request,
                                   NavigationType naigationvType, bool isRedirect)
        {
            System.Diagnostics.Debug.WriteLine("OnBeforeBrowse");
            return false;
        }
    
        bool IRequestHandler.OnBeforeResourceLoad(IWebBrowser browser,
                                         IRequestResponse requestResponse)
        {
            System.Diagnostics.Debug.WriteLine("OnBeforeResourceLoad");
            IRequest request = requestResponse.Request;
    
            if (request.Url.EndsWith("header.png"))
            {
                MemoryStream stream = new System.IO.MemoryStream();
    
                FileStream file = new FileStream(@"C:\tmp\header.png", FileMode.Open, FileAccess.Read, FileShare.Read);
                byte[] bytes = new byte[file.Length];
                file.Read(bytes, 0, (int)file.Length);
                stream.Write(bytes, 0, (int)file.Length);
                file.Close();
    
                requestResponse.RespondWith(stream, "image/png");
            }
    
            return false;
        }
    
        void IRequestHandler.OnResourceResponse(IWebBrowser browser, string url,
                                       int status, string statusText,
                                       string mimeType, WebHeaderCollection headers)
        {
            System.Diagnostics.Debug.WriteLine("OnResourceResponse");
        }
    
        #endregion
    }
    

    The region with the request handlers is optional, thats for when you want to influence the calls. In my example I rerouted the call to the header image to an image on my c drive.

    That’s it what you need for code. You also need to have the following files addes to the folder of your executable:

    • avcodec-54.dll
    • avformat-54.dll
    • avutil-51.dll
    • chrome.pak
    • icudt.dll
    • libcef.dll
    • libEGL.dll
    • libGLESv2.dll
    • the locales folder

    Some of these files are optional tho, based upon what you want to do with them, but you can google that.

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

Sidebar

Related Questions

I am using visual studio 2005 for c++ this summer, but I am still
At my company we're still using Visual Studio 2005, but are peeking at Visual
I still find myself hand coding Visual Studio projects more than using the variety
I am using Visual Studio 2005 and am unable to use the Using statement.
I am using Visual studio 2005 for my development. I am doing a smart
I'm using Visual Studio 2005 w/.NET 2.0. I have no idea what happened, but
I am developing an Windows pplication(using Visual Studio 2008,Sql server 2005). I have to
I have a client who is still using Visual Studio 6 for building production
Using Visual Studio 2005, the debugger tells me that a deadlock has occurred just
Using Visual Studio 2005 with the latest Service Pack. I have a managed C++

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.