Sorry if you have seen this post before - I've posted it before, but it
seems to have gotten lost in Outlook limbo - it's visible on the web
interface, but not in any news reader I've tried :S
A while ago, I came accross this post by Armin describing how to reporduce a
focus bug with MDI children. I am currently experiencing the same problem in
my application although I'm not using an ActiveX control directly on the
form as in Armin's example (my 3rd party toolbars and menus could be the
culprits though).
I'm using Visual Studio 2003 with .net 1.1 on Windows XP.
Any help would be greatly appreciated.
Trev.
Origional Post by Armin (edited) - see http://tinyurl.com/2ezw2 for
origional:
----------------------------------------------------------------------------
--
Problem: A child can not be activated anymore by clicking in its
client area. It can only be activated by clicking the title bar. Also
the title bar does not always have the expected color depending on
the focus. Is this a known bug? I googled and search MSFT KB but
didn't find anything. Steps to reproduce:
1. New WindowsApplication
2. Add two new Forms (Form2 and Form3)
3. For Form1: Set IsMdiContainer=True
4. Add the following code to Form1:
Private Sub Form1_Load( _
ByVal sender As System.Object, _
ByVal e As System.EventArgs) _
Handles MyBase.Load
Dim f2 As New Form2
Dim f3 As New Form3
f2.MdiParent = Me
f2.Show()
f3.MdiParent = Me
f3.Show()
End Sub
5. On Form3, add an ActiveX control, e.g. WebBrowser (shdocvw.dll)
6. Start
Armin