954,164 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

help in a child form

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

MxDev
Junior Poster
141 posts since Sep 2007
Reputation Points: 8
Solved Threads: 3
 

Why not just show it modally?

private void button1_Click(object sender, EventArgs e)
    {
      using (frm1 frm = new frm1())
      {
        frm.ShowDialog();
      }
    }
sknake
Industrious Poster
4,954 posts since Feb 2009
Reputation Points: 1,764
Solved Threads: 735
 

Thanks again Mr. sknake for your help

MxDev
Junior Poster
141 posts since Sep 2007
Reputation Points: 8
Solved Threads: 3
 

You're welcome

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

sknake
Industrious Poster
4,954 posts since Feb 2009
Reputation Points: 1,764
Solved Threads: 735
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You