Why isn't WM_CLOSE firing for a component in VB.NET
Posted on 2006-11-29
I have derived a custom component from TextBox.
When the parent form is closing, I want to respond by closing a form that was opened.
But the code inside the following If statement doesn't get called.
What is necessary so that component gets the WM_CLOSE message?
Protected Overrides Sub WndProc(ByRef m As System.Windows.Forms.Message)
Const WM_CLOSE As Integer = &H10
If m.Msg = WM_CLOSE Then