CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Apr 2003
    Posts
    1

    Question A question about MDI application

    I have a problem in mdi applications
    The problem is:

    This mdi child window appears separate from the MDI application,
    rather than as a child form within it.

    Details:

    For example when I open the mdi application and press alt+tab to go to another application and press alt+tab again to go back to my mdi application ,
    I find in the switching panel that contains all the opened applications , I find two icons for my mdi application

    One icon of them (I made it) is for the parent mdi form , and when I click this icon , the mdi form appears but empty without any opened mdi child forms

    The other icon (I didn’t made it and it has the shape of the default windows icon) when I press it, all the opened mdi child windows appear without the mdi parent window

    All what I want to do is:
    Only one icon for the mdi application
    Both of mdi parent window and mdi child windows appear together not separately .

    Thanks in advance

  2. #2
    Join Date
    Nov 2002
    Location
    Singapore
    Posts
    1,890
    check the application's OnFocus event ,
    try implementing it and you can navigate that code.


    Paresh
    - Software Architect

  3. #3
    Join Date
    Jan 2003
    Location
    Massachusetts
    Posts
    170
    try something like this:


    ...

    Form f2 = new Form();
    f2.MdiParent = this;
    f2.show();
    ...



    jim
    I am scifi

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured