//in main form there is a public listbox "lstMain"
//in addTask form
Main main = new Main();
private void btnTaskAdd_Click(object sender, EventArgs e)
{
main.lstMain.Items.Add(lstAddTask.SelectedItem.ToString());
this.Close();
}
this code doesnt pass the selected item in lstAddTask to lstMain in the main form
any help would be great thanks :-)