I'm new to C# and am trying to create a WFA where I have the need to go from form 1 to Form2 and back.
My problem is coming back from form2 to form one.Bellow is the code on form2:
On this line frm2 = new CallingForm(); I'm getting the following error:
'SigCard.Ad_frm.CallingForm' is a 'field' but is used like a 'type' E:\Documents and Settings\Administrator\My Documents\Visual Studio 2008\Projects\SigCard\SigCard\Ad_frm.cs
what type should I use to declare CallingForm for this to work?
Thanks,
AL Almeida
CIO
May all those that come behind us, find us faithful.
My problem is coming back from form2 to form one.Bellow is the code on form2:
Code:
public partial class form2 : Form
{
public Object CallingForm;
public Form frm2;
public Ad_frm(Object caller)
{
// InitializeComponent();
// Note which form has called this one
CallingForm = caller;
}
private void Voltar_Click(object sender, EventArgs e)
{
frm2 = new CallingForm();
frm2.Show();
this.Hide();
}
}
'SigCard.Ad_frm.CallingForm' is a 'field' but is used like a 'type' E:\Documents and Settings\Administrator\My Documents\Visual Studio 2008\Projects\SigCard\SigCard\Ad_frm.cs
what type should I use to declare CallingForm for this to work?
Thanks,
AL Almeida
CIO
May all those that come behind us, find us faithful.