Click here to Skip to main content
15,886,026 members
Home / Discussions / C#
   

C#

 
QuestionSending the button name to a method. Pin
outerhell28-May-09 4:52
outerhell28-May-09 4:52 
AnswerRe: Sending the button name to a method. Pin
Michael Bookatz28-May-09 4:54
Michael Bookatz28-May-09 4:54 
GeneralRe: Sending the button name to a method. Pin
outerhell28-May-09 5:05
outerhell28-May-09 5:05 
AnswerRe: Sending the button name to a method. Pin
Pete O'Hanlon28-May-09 4:55
mvePete O'Hanlon28-May-09 4:55 
GeneralRe: Sending the button name to a method. Pin
outerhell28-May-09 5:01
outerhell28-May-09 5:01 
AnswerRe: Sending the button name to a method. Pin
Luc Pattyn28-May-09 4:58
sitebuilderLuc Pattyn28-May-09 4:58 
GeneralRe: Sending the button name to a method. Pin
PIEBALDconsult28-May-09 5:40
mvePIEBALDconsult28-May-09 5:40 
AnswerRe: Sending the button name to a method. Pin
padmanabhan N28-May-09 18:39
padmanabhan N28-May-09 18:39 
private void btn0_Click(object sender, EventArgs e)
{
Button btn = (Button)sender;
check();
if (btn.Name == btn0.Name)
{
txtcalculate.Text = txtcalculate.Text + "0";
}
if (btn.Name == btn1.Name)
{
txtcalculate.Text = txtcalculate.Text + "1";
}
if (btn.Name == btn2.Name)
{
txtcalculate.Text = txtcalculate.Text + "2";
}
}
//make all the button event to be btn0_Click

Padmanabhan

GeneralRe: Sending the button name to a method. Pin
outerhell28-May-09 21:20
outerhell28-May-09 21:20 
Questionhow to set a margin.. Pin
Hema Bairavan28-May-09 4:51
Hema Bairavan28-May-09 4:51 
AnswerRe: how to set a margin.. Pin
Simon P Stevens28-May-09 4:59
Simon P Stevens28-May-09 4:59 
QuestionMany network connections inside threads Pin
mohamang28-May-09 4:50
mohamang28-May-09 4:50 
AnswerRe: Many network connections inside threads Pin
EliottA28-May-09 5:27
EliottA28-May-09 5:27 
GeneralRe: Many network connections inside threads Pin
Luc Pattyn28-May-09 5:37
sitebuilderLuc Pattyn28-May-09 5:37 
GeneralRe: Many network connections inside threads Pin
EliottA28-May-09 5:39
EliottA28-May-09 5:39 
GeneralRe: Many network connections inside threads Pin
Luc Pattyn28-May-09 5:49
sitebuilderLuc Pattyn28-May-09 5:49 
GeneralRe: Many network connections inside threads Pin
mohamang28-May-09 5:52
mohamang28-May-09 5:52 
GeneralRe: Many network connections inside threads Pin
Luc Pattyn28-May-09 6:00
sitebuilderLuc Pattyn28-May-09 6:00 
GeneralCheck it out Pin
EliottA28-May-09 5:50
EliottA28-May-09 5:50 
GeneralRe: Check it out Pin
Luc Pattyn28-May-09 6:08
sitebuilderLuc Pattyn28-May-09 6:08 
AnswerRe: Check it out Pin
Nicholas Butler28-May-09 7:35
sitebuilderNicholas Butler28-May-09 7:35 
GeneralRe: Check it out Pin
Luc Pattyn28-May-09 7:43
sitebuilderLuc Pattyn28-May-09 7:43 
GeneralRe: Check it out Pin
Nicholas Butler28-May-09 7:56
sitebuilderNicholas Butler28-May-09 7:56 
GeneralRe: Check it out Pin
Luc Pattyn28-May-09 7:59
sitebuilderLuc Pattyn28-May-09 7:59 
AnswerRe: Many network connections inside threads Pin
led mike28-May-09 7:43
led mike28-May-09 7:43 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.