C#:Doubt in event handler?
-
hi all i have two forms FORM1 and FORM2.and form1 has two buttons. when buttons B1,B2 is clicked in FORM1, FORM2 should appear, but i need to trace which button is clicked .so that i want to display dfferent controls in FORM2 accordin to button click. Any body give some tips I am trying to trace the "event e" in the FORM2 's load event. pls help
senthil
-
hi all i have two forms FORM1 and FORM2.and form1 has two buttons. when buttons B1,B2 is clicked in FORM1, FORM2 should appear, but i need to trace which button is clicked .so that i want to display dfferent controls in FORM2 accordin to button click. Any body give some tips I am trying to trace the "event e" in the FORM2 's load event. pls help
senthil
You can either have two event handlers for your two buttons to distinguish which one was pressed or you can examine the sender property by casting it to appropriate type
#region signature my articles #endregion
-
hi all i have two forms FORM1 and FORM2.and form1 has two buttons. when buttons B1,B2 is clicked in FORM1, FORM2 should appear, but i need to trace which button is clicked .so that i want to display dfferent controls in FORM2 accordin to button click. Any body give some tips I am trying to trace the "event e" in the FORM2 's load event. pls help
senthil