Click here to Skip to main content
15,913,854 members
Home / Discussions / C#
   

C#

 
GeneralRe: Can any one help please? Pin
Guffa26-Jan-09 3:49
Guffa26-Jan-09 3:49 
QuestionGet html from url Pin
macsheriff24-Jan-09 8:00
macsheriff24-Jan-09 8:00 
AnswerRe: Get html from url Pin
Guffa24-Jan-09 8:44
Guffa24-Jan-09 8:44 
GeneralRe: Get html from url Pin
macsheriff24-Jan-09 9:03
macsheriff24-Jan-09 9:03 
GeneralRe: Get html from url Pin
Guffa24-Jan-09 11:42
Guffa24-Jan-09 11:42 
GeneralRe: Get html from url Pin
macsheriff25-Jan-09 4:19
macsheriff25-Jan-09 4:19 
GeneralRe: Get html from url Pin
Guffa25-Jan-09 13:57
Guffa25-Jan-09 13:57 
Questionadd a row to tableLayoutPanel at runtime VS 2005 Pin
lcm124-Jan-09 6:29
lcm124-Jan-09 6:29 
I'm new to C# and trying to add a new row to my form using tableLayoutPanel using an Add button. When I click the Add Button I believe a new row is added but the previous row disappears. I've search the web and MS for help and followed their suggestions, but continue to receive the same results. Below is the code used in the click button method
private void buttonAddDebt_Click(object sender, EventArgs e)
{
// Set the GrowStyle to Add Rows.
debtTableLayoutPanel.GrowStyle = TableLayoutPanelGrowStyle.AddRows;

// Ensure the AutoSize property is set to allow for the row to be added
debtTableLayoutPanel.AutoSize = true;

// Set Row Number to Be inserted
int InsertRowNum = debtTableLayoutPanel.RowCount;
debtTableLayoutPanel.AutoScroll = true;
debtTableLayoutPanel.Visible = true;

// Increment the row count by one for the new row.
debtTableLayoutPanel.RowCount++;

// Insert new RowStyles for correspoinding new row
RowStyle newRowStyle = new RowStyle();
newRowStyle.SizeType = SizeType.Absolute;
newRowStyle.Height = 30;
debtTableLayoutPanel.RowStyles.Insert(InsertRowNum,newRowStyle);

// Add the new row
debtTableLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(SizeType.Absolute, 30));
// Add controls to the new row
debtTableLayoutPanel.Controls.Add(textBoxDebtAmount, 0, InsertRowNum);
debtTableLayoutPanel.Controls.Add(textBoxInterestRate, 1, InsertRowNum);
debtTableLayoutPanel.Controls.Add(listBoxDebtType, 2, InsertRowNum);
debtTableLayoutPanel.Controls.Add(listBoxCompoundingFrequency, 3, InsertRowNum);
debtTableLayoutPanel.Controls.Add(numericUpDownAmortizationPeriods, 4, InsertRowNum);
debtTableLayoutPanel.Controls.Add(listBoxPaymentFrequency, 5, InsertRowNum);
debtTableLayoutPanel.Controls.Add(listBoxPaymentType, 6, InsertRowNum);
debtTableLayoutPanel.Controls.Add(textBoxPaymentAmount, 7, InsertRowNum);

/*
this.debtTableLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 29F));
this.debtTableLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 20F));
this.debtTableLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 20F));
this.debtTableLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 20F));
this.debtTableLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 20F));
this.debtTableLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 20F));
this.debtTableLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 20F));
this.debtTableLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 20F));
this.debtTableLayoutPanel.Size = new System.Drawing.Size(620, 27*debtTableLayoutPanel.RowCount);

*/
debtTableLayoutPanel.TabIndex++;
debtTableLayoutPanel.Visible = true;
} // end buttonAddDebt_Click
AnswerRe: add a row to tableLayoutPanel at runtime VS 2005 Pin
DaveyM6924-Jan-09 7:03
professionalDaveyM6924-Jan-09 7:03 
QuestionHow to make BEEP in WinCE ? Pin
E_Gold24-Jan-09 5:39
E_Gold24-Jan-09 5:39 
AnswerRe: How to make BEEP in WinCE ? Pin
Wendelius24-Jan-09 5:47
mentorWendelius24-Jan-09 5:47 
AnswerRe: How to make BEEP in WinCE ? Pin
DaveyM6924-Jan-09 6:11
professionalDaveyM6924-Jan-09 6:11 
AnswerRe: How to make BEEP in WinCE ? Pin
Ta Hoang Van14-Mar-11 21:06
Ta Hoang Van14-Mar-11 21:06 
QuestionC# To send key strokes to a background application Pin
Schoolmelk24-Jan-09 4:34
Schoolmelk24-Jan-09 4:34 
AnswerRe: C# To send key strokes to a background application Pin
DaveyM6924-Jan-09 5:24
professionalDaveyM6924-Jan-09 5:24 
QuestionAdding to boundless String[] Pin
will kirkby24-Jan-09 4:17
will kirkby24-Jan-09 4:17 
AnswerRe: Adding to boundless String[] Pin
User 665824-Jan-09 4:25
User 665824-Jan-09 4:25 
AnswerRe: Adding to boundless String[] Pin
CooperWu24-Jan-09 4:26
CooperWu24-Jan-09 4:26 
GeneralRe: Adding to boundless String[] Pin
will kirkby24-Jan-09 4:35
will kirkby24-Jan-09 4:35 
GeneralRe: Adding to boundless String[] Pin
CooperWu24-Jan-09 4:50
CooperWu24-Jan-09 4:50 
GeneralRe: Adding to boundless String[] Pin
will kirkby24-Jan-09 5:14
will kirkby24-Jan-09 5:14 
GeneralRe: Adding to boundless String[] Pin
CooperWu24-Jan-09 20:36
CooperWu24-Jan-09 20:36 
GeneralRe: Adding to boundless String[] Pin
Luc Pattyn24-Jan-09 6:27
sitebuilderLuc Pattyn24-Jan-09 6:27 
QuestionFile transfer in C# Pin
SimpleData24-Jan-09 4:17
SimpleData24-Jan-09 4:17 
AnswerRe: File transfer in C# Pin
#realJSOP24-Jan-09 4:24
professional#realJSOP24-Jan-09 4:24 

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.