Click here to Skip to main content
15,909,437 members
Home / Discussions / C#
   

C#

 
AnswerRe: how to embedd or bind any file to my app at runtime ? Pin
Saqib Mehmood17-May-06 18:17
Saqib Mehmood17-May-06 18:17 
GeneralRe: how to embedd or bind any file to my app at runtime ? Pin
hdv21217-May-06 19:55
hdv21217-May-06 19:55 
GeneralRe: how to embedd or bind any file to my app at runtime ? Pin
Saqib Mehmood17-May-06 20:08
Saqib Mehmood17-May-06 20:08 
GeneralRe: how to embedd or bind any file to my app at runtime ? Pin
hdv21217-May-06 22:56
hdv21217-May-06 22:56 
QuestionCustom User Control and VS.NET 2005 Pin
Drew McGhie17-May-06 12:00
Drew McGhie17-May-06 12:00 
AnswerRe: Custom User Control and VS.NET 2005 Pin
Ed.Poore17-May-06 12:09
Ed.Poore17-May-06 12:09 
GeneralRe: Custom User Control and VS.NET 2005 Pin
Drew McGhie18-May-06 3:22
Drew McGhie18-May-06 3:22 
AnswerRe: Custom User Control and VS.NET 2005 Pin
microsoc17-May-06 19:58
microsoc17-May-06 19:58 
QuestionNeed help in parsing MIME version 1.0 email message Pin
msolh17-May-06 10:52
msolh17-May-06 10:52 
AnswerRe: Need help in parsing MIME version 1.0 email message Pin
Kakuji17-May-06 18:48
Kakuji17-May-06 18:48 
Questionhow to add an image into resource library? Pin
Susuko17-May-06 10:43
Susuko17-May-06 10:43 
AnswerRe: how to add an image into resource library? Pin
Judah Gabriel Himango17-May-06 11:02
sponsorJudah Gabriel Himango17-May-06 11:02 
GeneralRe: how to add an image into resource library? Pin
Susuko17-May-06 11:18
Susuko17-May-06 11:18 
GeneralRe: how to add an image into resource library? Pin
Judah Gabriel Himango17-May-06 12:31
sponsorJudah Gabriel Himango17-May-06 12:31 
AnswerRe: how to add an image into resource library? Pin
stancrm18-May-06 2:43
stancrm18-May-06 2:43 
QuestionC# and MySQL Pin
Terji17-May-06 10:23
Terji17-May-06 10:23 
AnswerRe: C# and MySQL Pin
Guffa17-May-06 12:00
Guffa17-May-06 12:00 
QuestionTableLayoutPanel format Pin
reshsilk17-May-06 10:06
reshsilk17-May-06 10:06 
QuestionThe "\" character? Pin
Nick H. Lauritsen17-May-06 10:06
Nick H. Lauritsen17-May-06 10:06 
AnswerRe: The "\" character? Pin
Joshua Quick17-May-06 10:35
Joshua Quick17-May-06 10:35 
AnswerRe: The "\" character? Pin
stancrm18-May-06 2:45
stancrm18-May-06 2:45 
QuestionHow to save my DataTable, to my HD ? Pin
Tintin9217-May-06 9:52
Tintin9217-May-06 9:52 
AnswerRe: How to save my DataTable, to my HD ? Pin
coolvinx17-May-06 11:15
coolvinx17-May-06 11:15 
Questionc# button control Pin
reshsilk17-May-06 9:44
reshsilk17-May-06 9:44 
hello,

i'm working on a .NET windows form. i have programmatically created a column of buttons using the following code:

for (int j = 0; j < farmData.Tables["plate"].Rows.Count; j++)
{
Button viewBtn = new Button();
viewBtn.Text = "View";
viewBtn.Name = "viewBtn" + j.ToString();
viewBtn.UseVisualStyleBackColor = true;
viewBtn.Click += new System.EventHandler(this.viewBtn_Click);
tbl.Controls.Add(viewBtn, 0, j + 2);
}

when i push a button, and the viewBtn_Click method is called, how do i get the button name so that i know exactly which button was pushed?

Thanks in adavance for any insight!
RC
AnswerRe: c# button control Pin
User 665817-May-06 9:49
User 665817-May-06 9:49 

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.