[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
https://bugzilla.novell.com/show_bug.cgi?id=450342
User paul at all-the-johnsons.co.uk added comment
https://bugzilla.novell.com/show_bug.cgi?id=450342#c1
--- 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)
{
switch(e.KeyCode)
{
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";
else
this.Text = "ctrix -- Press 'Esc' to Continue";
break;
default: break;
}
Invalidate();
}
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