Hi again,
I worked out my other problem.
But now am having problems passing an array from one form to a textbox in another.
I have taken items from a listbox and added them into an array.
To pass the array into the following form I have used;
Form printPreviewForm = new PrintPreviewForm(employeeListArray);
printPreviewForm.ShowDialog();
And in the constructor on this new form;
public PrintPreviewForm(Array employeeVariable)
{
InitialiseComponent();
printPreviewTextBox.Text = Convert.ToString(employeeVariable);
}
I was hoping this would put my array taken from the listbox in Form1 into the textbox in Form2 but all that shows up in the textbox in Form2 is "System.String[]"
Any ideas?