Solved

What is the WPF Equivalent to overriding the WndProc event

Posted on 2008-06-23
2
2,566 Views
Last Modified: 2013-12-16
I am trying to move some custom control library applications over to WPF. In one application in particular it is critical that i can trap for the following events that occur on the control. I am having trouble trapping for the windows messages, because the namespaces do not exist in wpf. What can i do to mimic this functionality in WPF?

Thanks in advance.

   Protected Overrides Sub WndProc(ByRef m As System.Windows.Forms.Message)
        Select Case m.Msg
            Case WM_MOVING
            Case WM_LBUTTONDBLCLK
            Case WM_LBUTTONDOWN    
            Case WM_LBUTTONUP
            Case WM_MOUSEACTIVATE
            Case WM_ACTIVATE
            Case WM_MOUSELEAVE
            Case Else
        End Select
        MyBase.WndProc(m)
    End Sub
0
Comment
Question by:talker2004
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 16

Accepted Solution

by:
CuteBug earned 500 total points
ID: 21854034
0
 
LVL 7

Author Comment

by:talker2004
ID: 21865699
This is exctly the type of stuff i am looking for.

Thanks

0

Featured Post

PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In my previous article (http://www.experts-exchange.com/Programming/Languages/.NET/.NET_Framework_3.x/A_4362-Serialization-in-NET-1.html) we saw the basics of serialization and how types/objects can be serialized to Binary format. In this blog we wi…
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …

687 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question