Results 1 to 7 of 7

Thread: [RESOLVED] child forms limit

  1. #1

    Thread Starter
    Addicted Member scottlafoy's Avatar
    Join Date
    Feb 2009
    Location
    Calgary Alberta, Canada
    Posts
    148

    Resolved [RESOLVED] child forms limit

    Just a quick question,

    Is there a limit on how many child forms are open at one time? I am using myForm.Show() to display. When I have 12 open up it takes about 8 seconds. I then tried to open ~100 but they never open and I never get an error, the program just stops responding.

    Thanks in advance

    Scott
    C:\DOS
    C:\DOS\RUN
    RUN\DOS\RUN

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

    Re: child forms limit

    It may depend on the available memory. It is says It has stopped responding it does not necessarily mean it has crashed, perhaps it is still loading all the forms and you just had to wait for it to finish.
    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
    Frenzied Member MaximilianMayrhofer's Avatar
    Join Date
    Aug 2007
    Location
    IM IN YR LOOP
    Posts
    2,001

    Re: child forms limit

    How would eight forms even fit on a screen? That many forms sounds like a design flaw to me.

  4. #4

    Thread Starter
    Addicted Member scottlafoy's Avatar
    Join Date
    Feb 2009
    Location
    Calgary Alberta, Canada
    Posts
    148

    Re: child forms limit

    Actually I am using infragistics tabbed froms, so each form is full size inside the mdi parent and displaying the selected form on the screen and the rest appear like a tab on the top of the screen with the label being the forms name. It looks just like visual studios with multiple tabs accross the top for different classes open.

    Last time I tried to open 100 forms I let it run for about 30 minutes and it was still not responding.
    C:\DOS
    C:\DOS\RUN
    RUN\DOS\RUN

  5. #5
    PowerPoster techgnome's Avatar
    Join Date
    May 2002
    Posts
    34,687

    Re: child forms limit

    If that's the case, then you need to look to see what the form is doing when it's loaded/displayed... still.... 100 forms... that's an awful lot.

    -tg
    * I don't respond to private (PM) requests for help. It's not conducive to the general learning of others.*
    * I also don't respond to friend requests. Save a few bits and don't bother. I'll just end up rejecting anyways.*
    * How to get EFFECTIVE help: The Hitchhiker's Guide to Getting Help at VBF - Removing eels from your hovercraft *
    * How to Use Parameters * Create Disconnected ADO Recordset Clones * Set your VB6 ActiveX Compatibility * Get rid of those pesky VB Line Numbers * I swear I saved my data, where'd it run off to??? *

  6. #6
    Frenzied Member MaximilianMayrhofer's Avatar
    Join Date
    Aug 2007
    Location
    IM IN YR LOOP
    Posts
    2,001

    Re: child forms limit

    There is no point in loading 100 forms, because the user isn't going to be able to do anything useful with them. Scrolling left and right to find the right form would be a nightmare.

    However, if this is what you are doing, then I suggest you get a little more efficient about it. Don't load forms you potentially won't need into memory right away. You can create 100 tabs, without actually creating 100 forms. Just declare a variable of the appropriate form type and put it in the Tag property. When a tab receives the focus, you initialise the variable in the Tag.

  7. #7

    Thread Starter
    Addicted Member scottlafoy's Avatar
    Join Date
    Feb 2009
    Location
    Calgary Alberta, Canada
    Posts
    148

    Re: child forms limit

    I like your idea of making a variable of the type of form and using that, but I am not sure if I can. The tabbed forms thing on infragistics takes all mdi child forms and turns them into a tab on the mdi parent but in order for them to be picked up they have to be shown .show(). or maybe I am missing how to declair a variable?
    C:\DOS
    C:\DOS\RUN
    RUN\DOS\RUN

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