help in a child form

Please support our C# advertiser: Intel Parallel Studio Home
Reply

Join Date: Sep 2007
Posts: 83
Reputation: MxDev has a little shameless behaviour in the past 
Solved Threads: 2
MxDev MxDev is offline Offline
Junior Poster in Training

help in a child form

 
0
  #1
Sep 28th, 2009
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
Reply With Quote Quick reply to this message  
Join Date: Feb 2009
Posts: 3,432
Reputation: sknake has much to be proud of sknake has much to be proud of sknake has much to be proud of sknake has much to be proud of sknake has much to be proud of sknake has much to be proud of sknake has much to be proud of sknake has much to be proud of sknake has much to be proud of sknake has much to be proud of 
Solved Threads: 620
Sponsor
sknake's Avatar
sknake sknake is offline Offline
.NET Enthusiast

Re: help in a child form

 
1
  #2
Sep 28th, 2009
Why not just show it modally?
  1. private void button1_Click(object sender, EventArgs e)
  2. {
  3. using (frm1 frm = new frm1())
  4. {
  5. frm.ShowDialog();
  6. }
  7. }
Scott Knake
Custom Software Development
Apex Software, Inc.
Reply With Quote Quick reply to this message  
Join Date: Sep 2007
Posts: 83
Reputation: MxDev has a little shameless behaviour in the past 
Solved Threads: 2
MxDev MxDev is offline Offline
Junior Poster in Training

Re: help in a child form

 
0
  #3
Sep 29th, 2009
Thanks again Mr. sknake for your help
Reply With Quote Quick reply to this message  
Join Date: Feb 2009
Posts: 3,432
Reputation: sknake has much to be proud of sknake has much to be proud of sknake has much to be proud of sknake has much to be proud of sknake has much to be proud of sknake has much to be proud of sknake has much to be proud of sknake has much to be proud of sknake has much to be proud of sknake has much to be proud of 
Solved Threads: 620
Sponsor
sknake's Avatar
sknake sknake is offline Offline
.NET Enthusiast

Re: help in a child form

 
0
  #4
Sep 29th, 2009
You're welcome

Please mark this thread as solved if you have found an answer to your question and good luck!
Scott Knake
Custom Software Development
Apex Software, Inc.
Reply With Quote Quick reply to this message  
Reply

Message:




Views: 280 | Replies: 3
Thread Tools Search this Thread



Tag cloud for C#
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC