Solved

making custom events

Posted on 2009-05-17
3
146 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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

For those of you who don't follow the news, or just happen to live under rocks, Microsoft Research released a beta SDK (http://www.microsoft.com/en-us/download/details.aspx?id=27876) for the Xbox 360 Kinect. If you don't know what a Kinect is (http:…
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

760 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

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now