Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 832505
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T04:22:22+00:00 2026-05-15T04:22:22+00:00

I am currently working on a project where we have a couple very control

  • 0

I am currently working on a project where we have a couple very control heavy user controls that are being used inside a MDI Controller. This is a Line of Business app and it is very data driven.

The problem that we were facing was the aforementioned controls would load very very slowly, we dipped our toes into the waters of multi-threading for the control loading but that was not a solution for a plethora of reasons. Our solution to increasing the performance of the controls ended up being to ‘pre-load’ the forms onto a hidden window, create a stack of the existing forms, and pop off of the stack as the user requested a form.

Now the current issue that I’m seeing that will arise as we push this ‘fix’ out to our testers, and the ultimately our users is this:

Currently the ‘hidden’ window that contains the preloaded forms is visible in task manager, and can be shut down thus causing all of the controls to be lost. Then you have to create them on the fly losing the performance increase. Secondly, when the user uses up the stack we lose the performance increase (current solution to this is discussed below).

For the first problem, is there a way to hide this window from task manager, perhaps by creating a parent form that encapsulates both the main form for the program and the hidden form?

Our current solution to the second problem is to have an inactivity timer that when it fires checks the stacks for the forms, and loads a new form onto the stack if it isn’t full. However this still has the potential of causing a hang in the UI while it creates the forms. A possible solutions for this would be to put ‘used’ forms back onto the stack, but I feel like there may be a better way.

EDIT: For control design clarification

From the comments I have realized there is a lack of clarity on what exactly the control is doing.

Here is a detailed explanation of one of the controls.

I have defined for this control loading time as the time it takes from when a user performs an action that would open a control, until the time a control is accessible to be edited.

The control is for entering Prescriptions for a patient in the system, it has about 5 tabbed groups with a total of about 180 controls. The user selects to open a new Prescription control from inside the main program, this control is loaded into the MDI Child area of the Main Form (which is a DevExpress Ribbon Control). From the time the user clicks New (or loads an existing record) until the control is visible. The list of actions that happens in the program is this:

The stack is checked for the existence of a control.
If the control exists it is popped off of the stack.
The control is rendered on screen. This is what takes 2 seconds
The control then is populated with a blank object, or with existing data.
The control is ready to use.

The average percentage of loading time, across about 10 different machines, with different hardware the control rendering takes about 85 – 95 percent of the control loading time.

Without using the stack the control takes about 2 seconds to load, with the stack it takes about .8 seconds, this second time is acceptable.

I have looked at Henry’s link and I had previously already implemented the applicable suggestions.

Again I re-iterate my question as What is the best method to move controls to and from the stack with as little UI interruption as possible?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-15T04:22:22+00:00Added an answer on May 15, 2026 at 4:22 am

    Our solution to increasing the performance of the controls ended up being to ‘pre-load’ the forms onto a hidden window, create a stack of the existing forms, and pop off of the stack as the user requested a form.

    What do you mean by “pre-load the forms onto a hidden window”?

    Using the .NET object model, you should be able to instance as many forms as needed, keeping track of them in a generic collection, such as a list, and simply setting the .Visible and .MDIParent properties as needed.

    Our current solution to the second problem is to have an inactivity timer that when it fires checks the stacks for the forms, and loads a new form onto the stack if it isn’t full.

    Why are these forms being destroyed? Can’t they be cleared and re-used?

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a project that I'm currently working on but it currently only supports
I'm currently working on a consumer mobile application project and have read that 40%
I'm currently working on a project that needs to have a process that assigns
I'm currently working on project with Haskell, and have found myself some trouble. I'm
In the project I am currently working on, we have the need to develop
I am currently working on a project that is moving from .NET 2.0 to
I'm currently working on a project for medical image processing, that needs a huge
I'm currently working on a project where we have a large data warehouse which
I am currently working on a project and my goal is to locate text
I am currently working on a project with specific requirements. A brief overview of

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.