Solved

making custom events

Posted on 2009-05-17
3
149 Views
Last Modified: 2013-11-08
Hi

I want to make my own custom events

For example I have an event called Databinding (textbox event) and I want to make an event
with the different name say (MTB_DataBinding) but it should work in the same way as the normal
databinding event is doing.
0
Comment
Question by:KaranGupta
  • 2
3 Comments
 
LVL 11

Expert Comment

by:Muhammad Ousama Ghazali
ID: 24409600
Please spare some time to read this official documentation and guide to easily implement events/delegates:
http://msdn.microsoft.com/en-us/library/17sde2xt.aspx (see also the links at the end of the page)
http://www.worldofasp.net/tut/Delegates/Delegates_and_Events_in_Csharp_97.aspx
0
 

Author Comment

by:KaranGupta
ID: 24409952
Hi

I have created a delegate and an event

public delegate void MTB_TextChangedEventHandler(object sender, EventArgs e);
public static event MTB_TextChangedEventHandler MTB_TextChanged;        

But I want the delegate of TextBox.TextChanged
0
 
LVL 11

Accepted Solution

by:
Muhammad Ousama Ghazali earned 500 total points
ID: 24410675
As I mentioned earlier, check these links too:
How to: Raise and Consume Events: http://msdn.microsoft.com/en-us/library/9aackb16.aspx
How to: Connect Event Handler Methods to Events: http://msdn.microsoft.com/en-us/library/xwbwks95.aspx
0

Featured Post

MIM Survival Guide for Service Desk Managers

Major incidents can send mastered service desk processes into disorder. Systems and tools produce the data needed to resolve these incidents, but your challenge is getting that information to the right people fast. Check out the Survival Guide and begin bringing order to chaos.

Question has a verified solution.

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

Introduction This article shows how to use the open source plupload control to upload multiple images. The images are resized on the client side before uploading and the upload is done in chunks. Background I had to provide a way for user…
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

828 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