It's not necessarily wrong, just something to think about in the future if you ever don't want to process the base class code, and in this case, I think you did it right.
Protected Overrides Sub WndProc(ByRef m As System.Windows.Forms.Message)[code]
Dim lsValue As String = ""Dim lnValue As Integer
Can't figure this one out. I'm running a vfp app in .net app using DartSock. The VFP forms show in the desktop (but not in toolbar) instead of the .net MDI form, so I can show them in seperate monitors if I need to.
The only problem is (and I noticed this too when I use only .net forms), when I minimize the parent form, the children don't minimize along with it.
How could I override the wndProc sub of the .net form, so I can capture the minimize/maximize button click on the main form? I can't figure out which value in m tells me the form has minimized. I know that once I can capture that, I can hadle the child forms through API calls.
Thanks.
Marcel