Solved

Multiple-Form Application Running on .Net Compact Framework (Form Switching Problem)

Posted on 2004-09-22
4
2,846 Views
Last Modified: 2010-08-05
I am having problems with a multiple form application written in C# for running on .Net Compact Framework.   I am using the Form Show() and Hide() methods for switch among different forms.  The switch works but the new form is always minimized.  I tried it within the WinCE emulator and also on mobile devices.  Anybody has some ideas?  

I also tried to adapt my application to run on  .Net Framework, i.e., to be a regular window application.  The form switching work fine.

Thank you for your help.

0
Comment
Question by:Dennis98
  • 3
4 Comments
 
LVL 10

Accepted Solution

by:
eternal_21 earned 250 total points
ID: 12128939
I was able to demonstrate your problem.  By reversing my Show and Hide calls, the problem was fixed.  What I mean by this is instead of hiding your first form and the showing your second form, Show the second form and THEN hide the first form.  I am very curious to see if this works for you.

- eternal
0
 
LVL 10

Expert Comment

by:eternal_21
ID: 12136443
How did that work for you, Dennis98?
0
 

Author Comment

by:Dennis98
ID: 12137362
eternal_21, that works.  Thanks.  I did not expect the fix to be so simple because I did not have the problem when running the app as a regular window application (in the order of hiding the 1st form then showing the 2nd form).  Any idea why the problem?
0
 
LVL 10

Expert Comment

by:eternal_21
ID: 12137565
No, I have never used the compact framework before.  I don't understand why we experienced what we did, but I will investigate it and post back here :).
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

This article describes a simple method to resize a control at runtime.  It includes ready-to-use source code and a complete sample demonstration application.  We'll also talk about C# Extension Methods. Introduction In one of my applications…
We all know that functional code is the leg that any good program stands on when it comes right down to it, however, if your program lacks a good user interface your product may not have the appeal needed to keep your customers happy. This issue can…
This tutorial demonstrates a quick way of adding group price to multiple Magento products.
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

708 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now