Click here to Skip to main content
15,918,706 members
Home / Discussions / C#
   

C#

 
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 
GeneralRe: c# button control Pin
reshsilk17-May-06 9:59
reshsilk17-May-06 9:59 
Questionwindows titlebar Pin
gonzalesman17-May-06 9:02
gonzalesman17-May-06 9:02 
AnswerRe: windows titlebar Pin
NaNg1524117-May-06 9:15
NaNg1524117-May-06 9:15 
GeneralRe: windows titlebar Pin
Office Lineman17-May-06 11:46
Office Lineman17-May-06 11:46 
AnswerRe: windows titlebar Pin
Eric Dahlvang17-May-06 9:22
Eric Dahlvang17-May-06 9:22 
AnswerRe: windows titlebar Pin
Eric Dahlvang17-May-06 9:24
Eric Dahlvang17-May-06 9:24 
GeneralRe: windows titlebar Pin
Guffa17-May-06 12:04
Guffa17-May-06 12:04 
QuestionConvert Component to Service Pin
AndyZZ17-May-06 8:45
AndyZZ17-May-06 8:45 
AnswerRe: Convert Component to Service Pin
led mike17-May-06 11:56
led mike17-May-06 11:56 
QuestionArchitecture Question / Circular Refs Pin
Scott Phelps17-May-06 8:32
Scott Phelps17-May-06 8:32 
AnswerRe: Architecture Question / Circular Refs Pin
Office Lineman17-May-06 8:50
Office Lineman17-May-06 8:50 
GeneralRe: Architecture Question / Circular Refs Pin
Scott Phelps17-May-06 9:12
Scott Phelps17-May-06 9:12 
GeneralRe: Architecture Question / Circular Refs Pin
Office Lineman17-May-06 11:55
Office Lineman17-May-06 11:55 
QuestionThe Server is not operational" when authenticating user to active directory Pin
krishna nimmalapudi17-May-06 7:31
krishna nimmalapudi17-May-06 7:31 
Question[DllImport] questen Pin
QzRz17-May-06 7:26
QzRz17-May-06 7:26 
AnswerRe: [DllImport] questen Pin
Office Lineman17-May-06 8:51
Office Lineman17-May-06 8:51 

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.