[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

making custom events

Posted on 2009-05-17
3
Medium Priority
?
157 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 2000 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

 [eBook] Windows Nano Server

Download this FREE eBook and learn all you need to get started with Windows Nano Server, including deployment options, remote management
and troubleshooting tips and tricks

Question has a verified solution.

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

IntroductionWhile developing web applications, a single page might contain many regions and each region might contain many number of controls with the capability to perform  postback. Many times you might need to perform some action on an ASP.NET po…
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
this video summaries big data hadoop online training demo (http://onlineitguru.com/big-data-hadoop-online-training-placement.html) , and covers basics in big data hadoop .
Screencast - Getting to Know the Pipeline
Suggested Courses
Course of the Month20 days, left to enroll

873 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