#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2012
    Posts
    28
    Rep Power
    0

    Post Hide MDI form in application


    Is it possible to hide the MDI Form(Owner of the MDI child) and display the MDI Child alone in my application ?


    i tried it with the following lines in Project file,
    Application.CreateForm(TdmMain, dmMain);
    Application.ShowMainForm := False;
    Application.CreateForm(TCnMain, CnMain); -- MDI Form
    Application.CreateForm(TdmWACC, dmWACC);
    Application.CreateForm(TFrmWACC,FrmWACC); -- MDI Child
    Application.Run;


    .Exe has been created, it shows the EXE in the running status and it's also available in the Task bar, but i couldn't view it.

    Thanks in advance for ur guidance.
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jun 2008
    Posts
    352
    Rep Power
    7
    Originally Posted by Murugavel
    Is it possible to hide the MDI Form(Owner of the MDI child) and display the MDI Child alone in my application ?


    i tried it with the following lines in Project file,
    Application.CreateForm(TdmMain, dmMain);
    Application.ShowMainForm := False;
    Application.CreateForm(TCnMain, CnMain); -- MDI Form
    Application.CreateForm(TdmWACC, dmWACC);
    Application.CreateForm(TFrmWACC,FrmWACC); -- MDI Child
    Application.Run;


    .Exe has been created, it shows the EXE in the running status and it's also available in the Task bar, but i couldn't view it.

    Thanks in advance for ur guidance.
    I'm not sure why you would want to design your application using the MDI framework, only to hide the MDI frame and show the Child forms. Seems that IF you could get it to work, it would end up looking much like a Single Document Interface application. So why the extra trouble?

    Maybe if you explain what you are attempting to accomplish, an alternative could be suggested.
  4. #3
  5. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2013
    Location
    constantine, algeria
    Posts
    1
    Rep Power
    0
    Hi,
    i don't understand what you are looking, because english is not my native language.
    and i think you want to hide main form and show child form only
    so try this:
    FrmWACC.formstyle:=fsnormal;
    CnMain.hide;

IMN logo majestic logo threadwatch logo seochat tools logo