hi guys,

How to make a child form refer to it's parent form, what i mean is that when the child form created it's lock the parent till it finish.

thanks in advance

Recommended Answers

All 3 Replies

Why not just show it modally?

private void button1_Click(object sender, EventArgs e)
    {
      using (frm1 frm = new frm1())
      {
        frm.ShowDialog();
      }
    }
commented: obviously +4

Thanks again Mr. sknake for your help

You're welcome

Please mark this thread as solved if you have found an answer to your question and good luck!

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.