SDK equivilant questions

  • Thread starter Thread starter raffelm
  • Start date Start date
R

raffelm

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
 
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
 
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.
 
Back
Top