Users Pricing

forum

Home Forums I want to store the button text which called the window form – MindStick

I want to store the button text which called the window form

Anonymous User 1740 04 Sep 2013

On form 1 I want to store the name of the button which called this form so that i can execute some code depending upon the 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();
}

1 Answers

Markdown for AI

A clean, structured version of this page for AI assistants and LLMs.

Open .md