By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
454,417 Members | 1,340 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 454,417 IT Pros & Developers. It's quick & easy.

SDK equivilant questions

P: n/a
In the "old" days, I would use SendMessage and PostMessage to trigger
events in my windows or controls. What is the C#/.NET way for doing
this?

Thnx
Matt
Nov 15 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
Well in the "new" days, it would depend on the message and/or the control.

But you can still use the Send/PostMessage via P/Invode
HTH
Brian W

"raffelm" <ma*********@mindspring.com> wrote in message
news:ba*************************@posting.google.co m...
In the "old" days, I would use SendMessage and PostMessage to trigger
events in my windows or controls. What is the C#/.NET way for doing
this?

Thnx
Matt

Nov 15 '05 #2

P: n/a
Hi,

I guess he is asking about somehting else

Normally, clicking the button is referred to as an 'Event' and functions that produce result of an event are called as 'Event Handlers'. When an event occurs, all the event handler fuctions are invoke. To invoke all these functions when an event is triggered, the event should know what all functions are associated with it. The c# way of executing a method is using a machanism called event delegate. you can simply take it as a method pointer.

eg:- this.menuItemGoto.Click += new System.EventHandler(this.menuItemGoto_Click);

Nirosh.

"raffelm" <ma*********@mindspring.com> wrote in message news:ba*************************@posting.google.co m...
In the "old" days, I would use SendMessage and PostMessage to trigger
events in my windows or controls. What is the C#/.NET way for doing
this?

Thnx
Matt


Nov 15 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.