Parent, child forms question


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 3 of 3

Thread: Parent, child forms question

Hybrid View

  1. #1
    Join Date
    Aug 2005
    Posts
    46

    Parent, child forms question

    The Situation:

    I have a parent window and on clicking a button a child window opens in it. (MDI situaiton.) now when I click on another button of parent some new chjild window open on top of the previous child. But the previous cvhild is still there.

    I want to close that before openeing the new child. and also no matte how many itmes I click on the child button, only one child form of that specific type shopuld be open. which is not the case presently. At the present moment when I click on the child button some times, after every button click, a new child openes. I dont want this.

    help? ? ?

  2. #2
    Join Date
    Dec 2003
    Posts
    78
    before open a new form close the previous form using
    For Each frm In Me.MdiChildren
    frm.close
    Next

  3. #3
    Join Date
    Aug 2005
    Posts
    46
    ok, I try.

Similar Threads

  1. Replies: 2
    Last Post: 03-06-2005, 09:14 AM
  2. setting child form's top = ....
    By kevin in forum .NET
    Replies: 3
    Last Post: 03-26-2002, 01:23 PM
  3. Extract a child node of a given parent
    By Krishnan in forum XML
    Replies: 0
    Last Post: 02-08-2002, 04:30 PM
  4. Replies: 0
    Last Post: 02-07-2002, 05:38 PM
  5. child window - is it or isn't it?
    By TC in forum VB Classic
    Replies: 8
    Last Post: 09-26-2000, 02:34 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center