I have a main form which is going to use much input data typed in by the user. So I thought to make a separate form to handle the input. The closest to a solution was this thread http://www.daniweb.com/forums/thread231368.html
But I don't want the second form to be disposed off, or be closed by clicking the close icon. I like to store the input data in the second form(seems logical to me) and let the main form use them.
I don't want the input form to be visible all of the time. Just want to let it pop up when the user needs it(via menu or button, don't know yet)
This is my code so far a main form with a button and a click event and an inputdata form:
public partial class Form1 : Form
{
private InputData InputForm = new InputData();
public Form1()
{
InitializeComponent();
}
private void button1_Click(object sender, EventArgs e)
{
InputForm.Show();
}
}
Not very much, I know. But what would be the most elegant way to handle this?
As always, any help is greatly appreciated.:)