Alright guys..Thanks to all of you for your help and ideas..Well I was able to sort this after several hours of head-banging :)
private void connectToSourceDatabaseToolStripMenuItem_Click(object sender, EventArgs e)
{
if (src_mdi_child == null || src_mdi_child.IsDisposed)
{
src_mdi_child = new ConnectToSource();
src_mdi_child.MdiParent = this;
src_mdi_child.Show();
}
}
So I added the IsDisposed property. The condition checks if the childform is null and if it has been previously disposed before opening the form. Tada! it works!