[x]
Posted via EE Mobile

Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again.

Question
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

5.8

Parent Child Forms best practices? VB.Net 2005

Asked by craigdev in Microsoft Visual Basic.Net

Tags: form, 2005, child

Hi there,

I have come onto a contract working on a existing large windows forms vb.net 2005 application. I have been asked to address several issues with the performance and behaviour of the application as follows:

-Child Dialog forms are not grouped with the parent, so when I minimise the child, the parent remains shown, also if the child was opened using ShowDialog then the parent can’t be clicked so its a pretty bad situation. I need minimise/maximise of any form to do this for all open forms. Note there is only ever 2 forms open at a time.

-Form opening and form transitions is slow, this is I think in part to all the forms having a bitmap as there background and also the load of a new form doing quite a bit of work, data access, binding grids etc.

-Sometimes a dialog is presented (modal) and there is no way for a user to get back to there desktop or any other windows application, the current form just takes precedence over everything. If I click the windows quick launch “Show desktop” it gets minimised, but when I choose any other open application on my taskbar the form just comes up again to the forefront.

-Sometimes MessageBox.Show sits behind the front most form of the application; the user cannot click “OK” on this and has to kill the application

-Generally need to speed up the application as much as possible; it is a bit of a dog at the moment


The flow through the application is, on start up:

(Project start form) Form1 is shown choose your db connection click "OK"
> Form1 gets set as hidden and remains alive for the life of the application just hidden, loads of subsequent forms use code inside this form.
Form 2 User provides login information clicks “Login”
> Close this form, on the close event call a method in Form1 which shows Form3 which is like the main menu form of the application

So there is a wizard like approach for multiple forms to start with to get to form Main Menu, there after each path you can go down in the application involves hiding the Main Menu form, showing showing another form either going down a wizard chain of forms or opening a new form as a modal dialog where a next, next approach is not needed.


So two things really, one help on resolving some of the issues above, and two some suggestions that don’t involve too much refactoring to improve this windows forms app to bring inline with best practices for this kind of application.

Much appreciated.
[+][-]12/16/06 10:59 AM, ID: 18152298Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]12/16/06 02:22 PM, ID: 18152897Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]12/16/06 02:31 PM, ID: 18152928Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]12/16/06 05:51 PM, ID: 18153472Accepted Solution

View this solution now by starting your 30-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

About this solution

Zone: Microsoft Visual Basic.Net
Tags: form, 2005, child
Sign Up Now!
Solution Provided By: Marv-in
Participating Experts: 1
Solution Grade: C
 
[+][-]12/16/06 07:28 PM, ID: 18153681Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]12/18/06 09:19 AM, ID: 18159905Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20091111-EE-VQP-89