Solved

making custom events

Posted on 2009-05-17
3
153 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

MS Dynamics Made Instantly Simpler

Make Your Microsoft Dynamics Investment Count  & Drastically Decrease Training Time by Providing Intuitive Step-By-Step WalkThru Tutorials.

Question has a verified solution.

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

Many of us here at EE write code. Many of us write exceptional code; just as many of us write exception-prone code. As we all should know, exceptions are a mechanism for handling errors which are typically out of our control. From database errors, t…
Problem Hi all,    While many today have fast Internet connection, there are many still who do not, or are connecting through devices with a slower connect, so light web pages and fast load times are still popular.    If your ASP.NET page …
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.

726 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