Solved

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

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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

This article is for Object-Oriented Programming (OOP) beginners. An Interface contains declarations of events, indexers, methods and/or properties. Any class which implements the Interface should provide the concrete implementation for each Inter…
Entity Framework is a powerful tool to help you interact with the DataBase but still doesn't help much when we have a Stored Procedure that returns more than one resultset. The solution takes some of out-of-the-box thinking; read on!
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

830 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