views:

251

answers:

3

Hi,

I how to get the windowproc for a form in c# for .net compact framework 3.5,

i want to know how to get the window proc of particular form.

By default we cant overide the window proc of a form in c# 3.5 compact, please let alternate

method to get the windowproc

A: 

If you are looking to hook into the windows messages, you could always use the OpenNETCF SDF library which has an ApplicationEx class. This class allows you to filter messages at the application level.

Alternatively, there are blog entries here and here that might be of some help to you.

Pete OHanlon
Hey, i agree with you..But the sample says we need to override an even and perform sendmessage. BUt i dont want that.. i want to get message like win32 dialog application.. there we have windproc and we will register the proc.. then we perform peekmessage(),dispatchmessage() then we get all the event related to dialogue na.. same way i want to get all the even related to from.. how to achive this
Shadow
+1  A: 

Here is the solution for my question

My Solution

Shadow