Click here to Skip to main content
15,897,519 members
Home / Discussions / C#
   

C#

 
GeneralRe: How to resize two texbox proportionally? Pin
Zeokat11-Nov-09 10:04
Zeokat11-Nov-09 10:04 
GeneralRe: How to resize two texbox proportionally? Pin
Zeokat12-Nov-09 0:10
Zeokat12-Nov-09 0:10 
Questionhow to perform image erosion in c#? Pin
Rubasini11-Nov-09 1:04
Rubasini11-Nov-09 1:04 
Questionhow to build remote system call application ? Pin
sudhir behera11-Nov-09 0:24
sudhir behera11-Nov-09 0:24 
AnswerRe: how to build remote system call application ? Pin
Abhishek Sur11-Nov-09 0:45
professionalAbhishek Sur11-Nov-09 0:45 
QuestionCreate radio buttons using data from XML Pin
Zar Ni10-Nov-09 22:59
Zar Ni10-Nov-09 22:59 
AnswerRe: Create radio buttons using data from XML Pin
Calla10-Nov-09 23:31
Calla10-Nov-09 23:31 
QuestionTableLayoutPanel Problem Pin
Tim Daughton10-Nov-09 22:32
Tim Daughton10-Nov-09 22:32 
Can't work out what I'm doing wrong. When I programmatically add a button to the first cell of a table layout panel by calling 'tlp.Controls.Add(newButton, 0, 0)' it works the first three times, shifting existing controls along a cell as expected. However after the third time the same code inserts the button into the second cell a few times, then after more calls, the third etc. Examlpe code below.

Is there a limit on how many times you can call Controls.Add(ctrl, column, row) for a given cell?

private int nextIndex = 1; // used to label each button
 
private void bAddButton_Click(object sender, EventArgs e) 
{ 
    Button newButton = new Button(); 
    newButton.Text = nextIndex.ToString(); 
    tableLayoutPanel1.Controls.Add(newButton, 0, 0);  // first cell
    nextIndex++; 
} 

AnswerMessage Closed Pin
10-Nov-09 22:38
stancrm10-Nov-09 22:38 
GeneralRe: TableLayoutPanel Problem Pin
Tim Daughton10-Nov-09 22:59
Tim Daughton10-Nov-09 22:59 
Questionupdating multiple rows of a single column with different values at runtime from C# Pin
Member 236780010-Nov-09 22:18
Member 236780010-Nov-09 22:18 
AnswerRe: updating multiple rows of a single column with different values at runtime from C# Pin
MumbleB11-Nov-09 0:24
MumbleB11-Nov-09 0:24 
GeneralRe: updating multiple rows of a single column with different values at runtime from C# Pin
Member 236780011-Nov-09 8:15
Member 236780011-Nov-09 8:15 
QuestionHTML to plain text Pin
Hum Dum10-Nov-09 22:16
Hum Dum10-Nov-09 22:16 
AnswerMessage Closed Pin
10-Nov-09 22:22
stancrm10-Nov-09 22:22 
GeneralRe: HTML to plain text Pin
Hum Dum11-Nov-09 20:26
Hum Dum11-Nov-09 20:26 
QuestionCannot Display value of DateTimePicker Pin
rhtbhegade10-Nov-09 22:13
rhtbhegade10-Nov-09 22:13 
QuestionCasting error question Pin
kanchoette10-Nov-09 22:06
kanchoette10-Nov-09 22:06 
AnswerRe: Casting error question Pin
Covean10-Nov-09 22:25
Covean10-Nov-09 22:25 
GeneralRe: Casting error question Pin
kanchoette10-Nov-09 23:23
kanchoette10-Nov-09 23:23 
GeneralRe: Casting error question Pin
Covean10-Nov-09 23:29
Covean10-Nov-09 23:29 
GeneralRe: Casting error question Pin
PIEBALDconsult11-Nov-09 3:40
mvePIEBALDconsult11-Nov-09 3:40 
QuestionCurrency formatting [modified] Pin
sajitk2010-Nov-09 22:02
sajitk2010-Nov-09 22:02 
AnswerMessage Closed Pin
10-Nov-09 22:16
stancrm10-Nov-09 22:16 
GeneralRe: Currency formatting Pin
sajitk2010-Nov-09 22:26
sajitk2010-Nov-09 22:26 

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.