binding an event procedure with multiple event of control.

      
             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.




Previous
Next Post »

2 comments

Click here for comments
Unknown
admin
19 February 2014 at 06:16 ×

great great work........with simple manner.keep it up brooooo

Reply
avatar
Unknown
admin
20 February 2014 at 06:43 ×

thanks vishal .you can also share knowledge here

Reply
avatar