1
Answer

Save a mesh to an .x file with C#

brian 0

brian 0

20y
3.1k
1
Are you trying to create and save a mesh to an .x file with c#? I did and you can too. I used Microsoft Visual C# .Net and DirectX 9.0b, both prior to 2003 update, to create a mesh with texture and transparency that opens in the DirectX Mesh Viewer. If you are interested in more info please email me at : "brian AT clubelite DOT com" If there are enough responses I hope to write a web site or small manual to help other beginners have fun with programming C# and DirectX.
Answers (1)
0
ramya g

ramya g

NA 5 0 15y

I think i am not being very clear. I have a drop down list and if i select a item and click the button, it should add a row to the exiting table. Next time when i select one more item from the drop down list and click the button, it should append the row. I have this following code which is adding a row with 9 columns at the first button click.but for the next button click , it is over writing on the previously added row. please help me out.
protected
void btnOK_Click(object sender, EventArgs e)
{

TableRow
tr = new TableRow();
TableCell firstcell = new TableCell();
TextBox firstcelltxtbox = new TextBox();
firstcelltxtbox.Text =
this.ddlDepartments.Text;
firstcell.Controls.Add(firstcelltxtbox);
tr.Cells.Add(firstcell);
//add cells to the new row
for (int i = 0; i < 8; )
{
TableCell tc = new TableCell();
TextBox txtbox = new TextBox();
tc.Controls.Add(txtbox);
tr.Cells.Add(tc);
i++;
}
// add row to the existing table

this.TableMyTimeSheet.Rows.Add(tr);

}
0
ramya g

ramya g

NA 5 0 15y

Thanks Nikhil,
Can you please let me know how to add just one row with 9 columns each time i click the button.
Thanks,
Ramya