Skip to content

Instantly share code, notes, and snippets.

@jankurianski
Created November 6, 2017 00:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jankurianski/60f5098e9fbeef0de81b39b5aa8c957d to your computer and use it in GitHub Desktop.
Save jankurianski/60f5098e9fbeef0de81b39b5aa8c957d to your computer and use it in GitHub Desktop.
diff --git a/CefSharp.WinForms.Example/BrowserTabUserControl.Designer.cs b/CefSharp.WinForms.Example/BrowserTabUserControl.Designer.cs
index b97bf79f..1f454947 100644
--- a/CefSharp.WinForms.Example/BrowserTabUserControl.Designer.cs
+++ b/CefSharp.WinForms.Example/BrowserTabUserControl.Designer.cs
@@ -1,4 +1,6 @@
-<U+FEFF>namespace CefSharp.WinForms.Example
+<U+FEFF>using System.Windows.Forms;
+
+namespace CefSharp.WinForms.Example
{
partial class BrowserTabUserControl
{
@@ -178,6 +180,13 @@
this.ResumeLayout(false);
this.PerformLayout();
+ this.urlTextBox.LostFocus += UrlTextBox_LostFocus;
+
+ }
+
+ private void UrlTextBox_LostFocus(object sender, System.EventArgs e)
+ {
+ MessageBox.Show("test");
}
#endregion
@ekalchev
Copy link

ekalchev commented Nov 6, 2017

I am reproducing this with your gist. You need to lose focus and your new focus MUST BE the browser control. Steps are

  1. Click on Url Text box to gain focus
  2. Click on Browser Control
    Result: I see the MessageBox but the application is not responding and the cursor is stuck in loading state. The only thing I can do is to kill the process.

I am reproducing this on my home computer, both x64 and Win32 and on multiple computers are my work - it is reproducible on every computer I tried so far.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment