c# - Store property of button which launched action -
on form1
want store name of button called form can execute code depending upon button click
button bt1=new button(); button bt2=new button(); private void b1_click(object sender, eventargs e) { form1 f1=new form1(); f1.show(); } private void b2_click(object sender, eventargs e) { form1 f1=new form1(); f1.show(); }
add property or member in form1 called callername.
set in constructor.
Comments
Post a Comment