J
Joergen Bech
In VB.Net 2005:
1. Create new application
2. Select Properties for Form1
3. Set IsMdiContainer = True
4. In the code, write
Public Class Form1
Private Sub Form1_DoubleClick(ByVal sender As Object, ByVal e As
System.EventArgs) Handles Me.DoubleClick
MsgBox("Test")
End Sub
End Class
Run the project. Double-click the form.
Nothing happens?
If I override WndProc to spy on the messages like this
Protected Overrides Sub WndProc(ByRef m As
System.Windows.Forms.Message)
Debug.WriteLine(m.Msg.ToString)
MyBase.WndProc(m)
End Sub
the results are quite different from what I get when I set
IsMdiContainer = False (in which case everything works
again).
Anyone who can shed some light on what the problem is?
Something like this used to work fine in VB6.
Regards,
Joergen Bech
1. Create new application
2. Select Properties for Form1
3. Set IsMdiContainer = True
4. In the code, write
Public Class Form1
Private Sub Form1_DoubleClick(ByVal sender As Object, ByVal e As
System.EventArgs) Handles Me.DoubleClick
MsgBox("Test")
End Sub
End Class
Run the project. Double-click the form.
Nothing happens?
If I override WndProc to spy on the messages like this
Protected Overrides Sub WndProc(ByRef m As
System.Windows.Forms.Message)
Debug.WriteLine(m.Msg.ToString)
MyBase.WndProc(m)
End Sub
the results are quite different from what I get when I set
IsMdiContainer = False (in which case everything works
again).
Anyone who can shed some light on what the problem is?
Something like this used to work fine in VB6.
Regards,
Joergen Bech