[Mono-bugs] [Bug 450342] Winforms applications don' t give a window focus without a button (or similar)

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Mon Dec 8 07:09:22 EST 2008


User paul at all-the-johnsons.co.uk added comment

--- Comment #1 from Paul Johnson <paul at all-the-johnsons.co.uk>  2008-12-08 05:09:22 MST ---
Event code showing the problem

   private void cTrix_KeyDown(object sender, 
                               System.Windows.Forms.KeyEventArgs e) 
      case Keys.X:  CurrentBlock.Right();break;
      case Keys.Z:  CurrentBlock.Left();break;
      case Keys.K:  CurrentBlock.Rotate();break;
      case Keys.M:  CurrentBlock.Down();break;
      case Keys.Escape:
        tmrGameClock.Enabled = !tmrGameClock.Enabled;
        if (tmrGameClock.Enabled)
          this.Text = "ctrix";
          this.Text = "ctrix -- Press 'Esc' to Continue";
      default: break;

I've done further tests and it doesn't make any difference if the code is
written in VB or C#, the outcome is the same.

If I run the code on a Win32 box, everything is fine. Could the problem be an X
and winform one?

Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.

More information about the mono-bugs mailing list