Can you handle all button click events at once in a form?
Give coding.
Answer / seema dalal
suppose ,there r 3 buttons & we have to handle all button
click events at once. Then try following steps
1) Write eventhandler
Public Sub clickevent(ByVal sender As Object, ByVal e As
System.EventArgs) Handles Button1.Click, Button2.Click,
Button3.Click
Dim b As Button = CType(sender, Button)
Response.Write("hello:" & b.Text)
End Sub
2) then call this event handler on click event of eech
buttons.
| Is This Answer Correct ? | 5 Yes | 0 No |
What is clr? How does work clr & wht is work of clr?
what is the additional features in 1.1 rather than 1.0
What are the main components of .net framework?
What is difference between constants, readonly and, static
give the feature of .net2.0 over .net1.1
what are abstract classes? what is overriding?
What are the difference between asynchronous controller implementation between asp.net mvc 3 & asp.net mvc 4?
What are actions in asp.net mvc?
what is a mvc in asp.net?
3 Answers Cap Gemini, Elsinoir Technologies, HCL,
Difference between <connectionstring> and <appsettings>
What are the ways to show data grid inside a data grid for a master details type of tables?
Which .net framework is installed?