Solved

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

Posted on 2004-09-22
4
2,869 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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction This article series is supposed to shed some light on the use of IDisposable and objects that inherit from it. In essence, a more apt title for this article would be: using (IDisposable) {}. I’m just not sure how many people would ge…
Summary: Persistence is the capability of an application to store the state of objects and recover it when necessary. This article compares the two common types of serialization in aspects of data access, readability, and runtime cost. A ready-to…
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

813 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

17 Experts available now in Live!

Get 1:1 Help Now