Results 1 to 7 of 7

Thread: MDIForm, modals... *[RESOLVED]*

  1. #1

    Thread Starter
    Member Matias's Avatar
    Join Date
    Jun 2005
    Location
    Buenos Aires, Argentina.
    Posts
    43

    Resolved MDIForm, modals... *[RESOLVED]*

    Well, i hope someone can help me. I need to make some MDIChild forms modals, I've reading in msdn that this is not posible. But i don't know if it is not posible at all or if it is posible somehow. I've been searching whitout sucess on this topic, but i guess mdi forms are not that popular...

    And one more thing, how can i know which forms (again MDIChild forms) are open at any given point?

    Well thanks to u all!!

    bye, Matias.-
    Last edited by Matias; Jun 29th, 2005 at 09:22 PM.

  2. #2
    Software Carpenter dee-u's Avatar
    Join Date
    Feb 2005
    Location
    Pinas
    Posts
    11,127

    Re: MDIForm, modals...

    Why do you want to show MDIChilds modally?
    Regards,


    As a gesture of gratitude please consider rating helpful posts. c",)

    Some stuffs: Mouse Hotkey | Compress file using SQL Server! | WPF - Rounded Combobox | WPF - Notify Icon and Balloon | NetVerser - a WPF chatting system

  3. #3
    PowerPoster RhinoBull's Avatar
    Join Date
    Mar 2004
    Location
    New Amsterdam
    Posts
    24,132

    Re: MDIForm, modals...

    MDI child form cannot be modal. You cannot even make it to be the topmost child form ...
    To know which forms are loaded use Forms collection (sample is not tested):
    VB Code:
    1. Dim frm as Form
    2.  
    3. For Each frm In Forms
    4.     If frm.MdiChild = True
    5.         debug.Print frm.Name
    6.     End If
    7. Next frm

  4. #4

    Thread Starter
    Member Matias's Avatar
    Join Date
    Jun 2005
    Location
    Buenos Aires, Argentina.
    Posts
    43

    Re: MDIForm, modals...

    thanks RhinoBull, i'll try that.

    Quote Originally Posted by dee-u
    Why do you want to show MDIChilds modally?
    Nothing special, i mean, because some forms are opened from other forms, and i need that the ones that where opened in the first place, remain open until the ones that were opened last are closed...

  5. #5
    Software Carpenter dee-u's Avatar
    Join Date
    Feb 2005
    Location
    Pinas
    Posts
    11,127

    Re: MDIForm, modals...

    You could still use non-MDIChild forms in MDI environment apps then show them modally.
    Regards,


    As a gesture of gratitude please consider rating helpful posts. c",)

    Some stuffs: Mouse Hotkey | Compress file using SQL Server! | WPF - Rounded Combobox | WPF - Notify Icon and Balloon | NetVerser - a WPF chatting system

  6. #6

    Thread Starter
    Member Matias's Avatar
    Join Date
    Jun 2005
    Location
    Buenos Aires, Argentina.
    Posts
    43

    Talking Re: MDIForm, modals...

    Quote Originally Posted by dee-u
    You could still use non-MDIChild forms in MDI environment apps then show them modally.
    You know... that's actually a very good point.. i didn't see that.

    Thanks dee-u

  7. #7
    Software Carpenter dee-u's Avatar
    Join Date
    Feb 2005
    Location
    Pinas
    Posts
    11,127

    Re: MDIForm, modals... *[RESOLVED]*

    Well, I'm glad to impart a new lesson for you.
    Regards,


    As a gesture of gratitude please consider rating helpful posts. c",)

    Some stuffs: Mouse Hotkey | Compress file using SQL Server! | WPF - Rounded Combobox | WPF - Notify Icon and Balloon | NetVerser - a WPF chatting system

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