Posted 14 years ago by tobias weltner
Avatar
Could you please provide a little vb.net sample that explains how to subclass syntaxeditor to get to its wndproc and raw messages? Thanx alot!

Comments (3)

Posted 14 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
The Control class has a WndProc method. So you essentially just inherit from any Control-based class you want to subclass and then override that method. It passes in a parameter that specifies the message, wParam, and lParam. You can also set the return value. Obviously you want to generally call the base class's WndProc method so that the Control can process all the messages you are not trapping.


Actipro Software Support

Posted 14 years ago by tobias weltner
Avatar
Thanks, and it works.
I was looking for a way to subclass it without creating an own class because this way, the control is not displayed in the designer (as I create it dynamically). It does work the way you describe, though. By the way, I love your controls, they are great.
Posted 14 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
I think you can also use the NativeWindow class to do what you want.


Actipro Software Support

The latest build of this product (v2018.1 build 0341) was released 8 months ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.