Strange WndProc bug in .Net. VB.Net more specifically.

Posted by Jules on Stack Overflow See other posts from Stack Overflow or by Jules
Published on 2010-04-21T15:43:42Z Indexed on 2010/04/21 16:33 UTC
Read the original article Hit count: 453

Filed under:
|
|
|
|

ETA: I use visual studio 2008 express edition.

If I override WndProc and mess up somehow, I'll usually backtrack by commenting out code until it works again.

The strange thing with WndProc though is you can strip it down to:

Protected Overrides Sub WndProc(ByRef m As System.Windows.Forms.Message)
    MyBase.WndProc((m))
End Sub

and it still throws the error.

I have to remove the code and retype it in to reset the error.

Anyone else experienced this?

© Stack Overflow or respective owner

Related posts about wndproc

Related posts about .NET