Here is an ugly hack:
In the Activated event of the child mdi form , set the focus back to
the mdi parent.

On 7 July 2010 13:27, Anthony <asale...@tpg.com.au> wrote:
> Doesn’t work..no matter what i do..the mdi child form gets the focus..really
> weird.
>
>
>
>
>
> From: ozdotnet-boun...@ozdotnet.com [mailto:ozdotnet-boun...@ozdotnet.com]
> On Behalf Of Greg Keogh
> Sent: Wednesday, 7 July 2010 11:03 AM
> To: 'ozDotNet'
> Subject: RE: MDI Form
>
>
>
> Hi Anthony, I find that setting the Focus() in Load doesn’t work because
> it’s too early, so I usually do it in the first Activate event. I often have
> code like this:
>
>
>
> If (++activateCount == 1)
>
> {
>
>     Thing.Focus();
>
>     // Other stuff for the first time everything is visible
> }
>
>
>
> You may have to set the focus to a specific control, not the whole form. I
> haven’t tried any of this with MDI though.
>
>
>
> Greg

Reply via email to