【问题标题】:Awesomium WebControl not working with WebSessionAwesomium WebControl 不适用于 WebSession
【发布时间】:2016-08-19 19:10:55
【问题描述】:

我正在尝试使用 WebControl 通过代理打开网站。 我已经尝试了所有能找到的方法,但没有任何效果。

我正在创建一个 WebControl、WebPreferences 和一个 WebSession,但是当我运行代码时没有显示任何内容。

string Proxy = "208.83.6.19:3128";

WebControl wc = new WebControl();
Browsers.Controls.Add(wc);
wc.Dock = DockStyle.Fill;

WebSession session = WebCore.CreateWebSession(new WebPreferences() { ProxyConfig = Proxy, SmoothScrolling = true });
wc.WebSession = session;
wc.Source = new Uri("http://checkip.dyndns.com/", UriKind.Absolute);

感谢我能得到的所有帮助!

【问题讨论】:

    标签: c# proxy web-controls awesomium


    【解决方案1】:

    它可能看起来很简单,但是......你什么时候将控件添加到你的表单中?

    this.Controls.Add( browser );
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2013-05-18
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2015-04-04
      • 1970-01-01
      相关资源
      最近更新 更多