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 777655
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T19:38:29+00:00 2026-05-14T19:38:29+00:00

I’m maintaining a Windows CE app built with the .NET Framework that has about

  • 0

I’m maintaining a Windows CE app built with the .NET Framework that has about 45 forms. There are 5 ‘sections’ which lead to the function you want. The application is 100% full screen and it is important that it can’t be minimized.

Since there are so many forms, it’s difficult to keep track of which form should be displayed after one is closed. For this, I’m setting the form owner property before showing it, and showing the owner when closing it.

I’ve also been advised that it is best to instantiate all forms when the application loads, and not dispose them to save processing time. I’m not sure about this.

My question is, what is the best way to go about showing, hiding forms where you want any 1 form to be in front, full screen all time?

  • 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-14T19:38:30+00:00Added an answer on May 14, 2026 at 7:38 pm

    I would not go the route of instantiating 45 forms when the application starts. This would severely lengthen the startup time and possibly (if not probably) exhaust your memory resources, all to provide functionality that your user may not even need.

    In my WinMo applications, each form is designed to work with a relatively small subset of data, so the startup time is limited to database calls and loading the data into the form’s controls. Typically, the time required to instantiate one of these forms and show it is never more than a second or two.

    If your forms are taking longer than this to show, it’s possible that there’s a problem with your data retrieval or with the way the data is loaded into the form’s controls (e.g. you might have a custom gridview control that fully renders all 300 rows even though only 12 are visible at one time). If your data is so large that it legitimately takes a long time to retrieve, chances are that’s far more data than a user can practically interact with anyway.

    I assume your mention of “5 sections” to get where the user needs to go means that they might (at a maximum) be “drilling down” 5 levels to something. If you implemented this by having each form instantiate and show the next form using ShowDialog, you would have at most 5-6 forms in existence at any one time, which shouldn’t be any problem for a .Net CF application (I do this all the time). This way, you don’t have to do anything special to keep track of which form should be shown when – you just open a form from wherever, and when the form is closed you’re automatically back to the calling form.

    There is some z-order/task manager weirdness that you have to deal with, but it’s not especially complicated. Before calling ShowDialog on the child form, you set the parent form’s Text property to a blank string, and then set it back to the form’s original caption after ShowDialog returns. This isn’t strictly necessary, but in Windows Mobile (at least up to version 6) all open .Net forms (with a non-blank Text property) show up in the Running Programs list, even if they’re all from the same application. I generally like my multi-form applications to appear to be just one program, so I usually set the Text of every form to the name of the application).

    I’ve also experimented with a single-form application that implements every piece of UI as a UserControl instead of a Form, and then creates and stacks the controls as if you were creating and opening forms. This works but it’s a hack and I don’t recommend it. Forms have a Load event and UserControls don’t, which is the main problem.

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

Sidebar

Ask A Question

Stats

  • Questions 378k
  • Answers 378k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer No, browsers don't provide this formatting option. You could probably… May 14, 2026 at 9:16 pm
  • Editorial Team
    Editorial Team added an answer This problem has the same grounds as your previous question… May 14, 2026 at 9:16 pm
  • Editorial Team
    Editorial Team added an answer I think you'll find that much of what you're doing… May 14, 2026 at 9:16 pm

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.