Guest User

PopupForm2

a guest
Dec 3rd, 2012
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.92 KB | None | 0 0
  1.         public PopupForm2(CefBrowser parentBrowser, CefPopupFeatures popupFeatures, CefWindowInfo windowInfo, string url, ref CefClient client, CefBrowserSettings settings)
  2.         {
  3.             InitializeComponent();
  4.  
  5.             _ParentBrowser = parentBrowser;
  6.             _PopupFeatures = popupFeatures;
  7.             _Client = client;
  8.             _Settings = settings;
  9.             _WindowInfo = windowInfo;
  10.         }
  11.  
  12.         private void PopupForm_Load(object sender, EventArgs e)
  13.         {
  14.             AttachControls();
  15.         }
  16.  
  17.         public void AttachControls()
  18.         {
  19.             _cefWebBrowserPopUpControl = new CefWebBrowserPopUp(null/*_WindowInfo*/, _Settings);
  20.             _cefWebBrowserPopUpControl.Dock = DockStyle.Fill;
  21.             _BrowserHolder.Controls.Add(_cefWebBrowserPopUpControl);
  22.             _cefWebBrowserPopUpControl.BringToFront();
  23.  
  24.             _WindowInfo.Parent = Handle;
  25.         }
Advertisement
Add Comment
Please, Sign In to add comment