we
demonstration on binding an event procedure with multiple event of control.
1)
Open Visual Studio
2)
Select file ->
New ->Project
3)Select language as “visual
c#” and template as “Windows Forms Application”,give appropritate
name,I give name as BindControl.select Location as click on ok
4)Then it will be open Form .
5)Drag and drop
control like (TextBox and Button) on
the form.
6) double click on any one control I click on button1 control so the
button1_Click event procedure is generated. Write code inside .we need to check either control is
binded or successfully or not so I write
Message box to display Message.
7)bind all the remaining control i.e
Form1 , TextBox1 like below .to event procedure,select event and select
dropdown the event procedure which u want to bind.
8) Now save the application.and run it.select on any control
they will show the same message.because we bind all control with same event procedure.
2 comments
Click here for commentsgreat great work........with simple manner.keep it up brooooo
Replythanks vishal .you can also share knowledge here
ReplyConversionConversion EmoticonEmoticon