?
Solved

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

Posted on 2004-09-22
4
Medium Priority
?
2,905 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
4 Comments
 
LVL 10

Accepted Solution

by:
eternal_21 earned 1000 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

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…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.
Suggested Courses
Course of the Month8 days, 15 hours left to enroll

764 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