c# - CefSharp WinForms Web Browser Won't Display -
I have a simple simple example that is trying to engage the CEF browser on a Winform form. For some reason this will not be displayed.
Public Partial Sections Form 1: Form {Public Form 1 () {Initial Group (); CefSharp.WinForms.ChromiumWebBrowser test = new CefSharp.WinForms.ChromiumWebBrowser ("http://google.com"); This.Controls.Add (test); }} Below I am VS I am using the solution. I have added the package via
your code slightly above lot dead Is missing a call Cef.Initialize () See the main code CefSharp.MinimalExample.WinForms For more information about how to use CefSharp and for a work example. You have to give control to a docstyle.fil , such as: public form 1 () {initial group (); Var test = new CefSharp.WinForms.ChromiumWebBrowser ("http://google.com") {doc = docstyle.fill,}; This.Controls.Add (test); }
Comments
Post a Comment