?
Solved

What is the WPF Equivalent to overriding the WndProc event

Posted on 2008-06-23
2
Medium Priority
?
2,598 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 2000 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

Tutorials alone can't teach real engineering

So we built better training tools.

-Hands-on Labs
-Instructor Mentoring
-Scenario-Based Tests
-Dedicated Cloud Servers

All at your fingertips. What are you waiting for?

Question has a verified solution.

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

A basic question.. “What is the Garbage Collector?” The usual answer given back: “Garbage collector is a background thread run by the CLR for freeing up the memory space used by the objects which are no longer used by the program.” I wondered …
More often than not, we developers are confronted with a need: a need to make some kind of magic happen via code. Whether it is for a client, for the boss, or for our own personal projects, the need must be satisfied. Most of the time, the Framework…
Michael from AdRem Software outlines event notifications and Automatic Corrective Actions in network monitoring. Automatic Corrective Actions are scripts, which can automatically run upon discovery of a certain undesirable condition in your network.…
In this video, Percona Solution Engineer Dimitri Vanoverbeke discusses why you want to use at least three nodes in a database cluster. To discuss how Percona Consulting can help with your design and architecture needs for your database and infras…
Suggested Courses

765 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