Solved

What is the WPF Equivalent to overriding the WndProc event

Posted on 2008-06-23
2
2,439 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
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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Flash (http://en.wikipedia.org/wiki/Adobe_Flash) has evolved over the years to where it has become a masterful tool for displaying content screen.  It has excellent layout placement, UI precision as well as rendering capabilities. This, along with t…
The object model of .Net can be overwhelming at times – so overwhelming that quite trivial tasks often take hours of research. In this case, the task at hand was to populate the datagrid from SQL Server database in Visual Studio 2008 Windows applica…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

758 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

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now