this is my code Form 1's code - this is the receiver public partial class Form1 : Form { public string IDD { get; set; } public string CN { get; set; } public string ADD { get; set; } public string TIME { get; set; } public Form1() { InitializeComponent(); } private void Form1_Load(object sender, EventArgs e) { ClientID.Text = IDD; ClientName.Text = CN; ClientAdd.Text = ADD; ClientTime.Text = TIME; } Form 2's code - this is the sender private void btnBack_Click(object sender, EventArgs e) { Form1 frm1 = new Form1(); frm1.IDD = txtID.Text; frm1.CN = txtCN.Text; frm1.ADD = txtAdd.Text; frm1.TIME = dateTimePicker1.Text; frm1.ShowDialog(); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)