Below is the code I am using in the overridden form's wndProc to capture a QueryEndSession message.
Protected Overrides Sub WndProc(ByRef m As System.Windows.Forms.Message)
Select Case m.Msg
Case 17
KillWatchDog()
Application.Exit()
End Select
MyBase.WndProc(m)
End Sub
I am capturing...
I am writing an application that uses a comControl to talk to the super IO controller on a motherboard. Everything works fine until I include the wndproc method in the form code to process some of the wnd messages. When the wnproc is present I get the following error when the control is...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.