I would create a 'Transaction" class, and use it to contain all the possible information about this monetary transaction. Instantiate it in the first step (form) of your transaction, and pass it from form to form as you go, adding data in each form.
This way, when you need to display text data in the third form, you can just get it from your transaction object.
Ok. Create your class (this is very raw - just for example purposes):
public class Transcation
{
public String data1 = "";
public String dada2 = "";
}
In Form1, instantiate your new object:
public partial class Form1 : Form
{
private Transcation t = new Transcation();
public Form1()
{
InitializeComponent();
}
private void ContinueToNextStep()
{
t.data1 = "some data";
Form2 f2 = new Form2(t);
f2.Show();
}
}
In subsequent forms, modify the constructor so that it accepts your transaction object, and then access the object's data when you need to, like so:
public partial class Form2 : Form
{
private Transcation t;
public Form2(Transcation t)
{
this.t = t;
InitializeComponent();
this.textBox1.Text = t.data1;
}
}
Rinse and repeat for every form in your chain, adding data as you need to and accessing it as above.
- Pete