nakuha na jud nk0....
private System.Windows.Forms.TextBox txtcid;
//havent notice your post about this..... thanks....
......
changed the private to public.....
naa ra mn d i ni sa CreateAccount.Designer.cs.......
this is now the code:
private void dataGridView1_DoubleClick(object sender, EventArgs e)
{
CreateAccount acc = new CreateAccount();
acc.txtcid.Text = dataGridView1.CurrentRow.Cells[0].Value.ToString();
acc.txtfname.Text = dataGridView1.CurrentRow.Cells[1].Value.ToString();
acc.txtmname.Text = dataGridView1.CurrentRow.Cells[2].Value.ToString();
acc.txtlname.Text = dataGridView1.CurrentRow.Cells[3].Value.ToString();
acc.txtaddress.Text = dataGridView1.CurrentRow.Cells[4].Value.ToString();
acc.txtcontact.Text = dataGridView1.CurrentRow.Cells[5].Value.ToString();
acc.cmbcustype.Text = dataGridView1.CurrentRow.Cells[6].Value.ToString();
acc.btnaccsave.Text = "UPDATE";
acc.ShowDialog();
}
thanks for the advice.....
![](http://img140.imagevenue.com/loc366/th_106786860_billing_122_366lo.JPG)