[Mono-bugs] [Bug 330495] Form: TextBox does not receive focus

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Thu Oct 4 18:14:32 EDT 2007


https://bugzilla.novell.com/show_bug.cgi?id=330495#c1


Ernesto Carrea <equistango at gmail.com> changed:

           What    |Removed                                         |Added
----------------------------------------------------------------------------
                 CC|                                                |equistango at gmail.com




--- Comment #1 from Ernesto Carrea <equistango at gmail.com>  2007-10-04 16:14:32 MST ---
The test case results in a form with no active control.

The problem is MDI-related, because MDI children will not receive a
Form.WmActivate message. (The test app will work ok if you comment MdiParent =
AppDesktop.MainForm;).

According to the ChangeLog, on 2007-01-10 a call to SelectActiveControl was
removed from Form.OnCreateControl because it was unnecessary. This call might
be necessary for MDI children. Something like:

if (this.MdiParent != null && this.ActiveControl == null)
        SelectActiveControl();

will fix the problem. Or perhaps this call should be made somewhere else, just
not Form.WmActivate.


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


More information about the mono-bugs mailing list