Hey all,
Just a quick one for you.How can i create an instance of a form from within a method? I know in the code below i can put the Form2 bob = new Form2(); within the public partial class Form1 : Form block it will work. But i dont want to create the instance of Form2 untill the button is clicked. I thought i might be able to create a makeform() method then create the form in there. But i couldnt get it to work. See code below:
using System;
using
namespace
{
InitializeComponent();
}
bob.textBox1.text =
button1_Click.bob.textBox1.text =
Thanks in advance,James