Focus problems using ActiveX control on MDI child: Bug?

A

Armin Zingler

Hello group, (VB.NET 2003/Framework 1.1/XP Prof.)

after narrowing the problem down, it turned out that there are
focus/activation problems whenever an MDI child contains any type of ActiveX
control.

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

Problem: A child can not be activated anymore by clicking in it's 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.


Armin
 
A

Armin Zingler

Armin Zingler said:
Hello group, (VB.NET 2003/Framework 1.1/XP Prof.)

after narrowing the problem down, it turned out that there are
focus/activation problems whenever an MDI child contains any type of
ActiveX control.

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

Problem: A child can not be activated anymore by clicking in it's
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.


Armin

Any hints?
 
T

Trev Hunter

Armin,

Did you ever get a fix for this problem?

I've been experiencing it and it's seriously messing up my MDI application.

Let me know,

Trev.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top