Post by heokhoa78 on Jan 30, 2016 16:05:43 GMT 10
Hello everybody, I try to use CEF to make a Browser, but when I run the program, i have a problem with CEF, please help me fix it. Thank you.
|
|
Post by Nathan Lecompte on Jan 30, 2016 17:13:43 GMT 10
Wut, show us some code please so we know what you're doing exactly...
|
|
Post by heokhoa78 on Jan 30, 2016 17:36:03 GMT 10
Here, this is my code.
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; using MyCefSharp; using CefSharp; using CefSharp.WinForms;
namespace MyCefSharp { public partial class Form1 : Form { public Form1() { InitializeComponent(); InitBrowser(); }
public ChromiumWebBrowser browser; public void InitBrowser() { Cef.Initialize(new CefSettings()); browser = new ChromiumWebBrowser("https://google.com"); this.Controls.Add(browser); browser.Dock = DockStyle.Fill; } } }
|
|
Post by Nathan Lecompte on Jan 30, 2016 18:51:59 GMT 10
Add the this.Controls.Add(browser); after the browser.Dock = DockStyle.Fill;
|
|
Post by heokhoa78 on Jan 30, 2016 19:31:21 GMT 10
I try but it doesn't work
|
|
Post by Nathan Lecompte on Jan 30, 2016 20:23:36 GMT 10
What exactly isn't working?
|
|
Post by heokhoa78 on Jan 30, 2016 20:47:06 GMT 10
Error as the picture still exist.
|
|
Post by Nathan Lecompte on Jan 30, 2016 20:55:37 GMT 10
What's happening in the picture???
|
|
Post by Prezence on Jan 31, 2016 4:10:38 GMT 10
Do you not want Google to show up?
Check out our website here. Check out AirBrowse here. Follow us on GitHub here.
|
|
Post by Justin Lopez on Jan 31, 2016 14:12:33 GMT 10
Sorry but this is comedy.. heokhoa78 Seriously what's happening in the picture, is it zooming in with the redbox?
|
|