Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

making custom events

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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

User art_snob (http://www.experts-exchange.com/M_6114203.html) encountered strange behavior of Android Web browser on his Mobile Web site. It took a while to find the true cause. It happens so, that the Android Web browser (at least up to OS ver. 2.…
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…
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…

618 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