If you are holding all the forms open in memory and using Show/Hide,
then a single form with a tab control will use less memory. If you are
opening and closing the forms, then multiple forms uses less memory, at
the expense of some processing time.
Do not get too worried about the difference between the two, unless you
are seriously short of resources, there is very little difference
between the two methods. Your client's requirements are far more
important.
Thank you so much.. Can't I exit the application by >using "End" ?
Yes, same result.
Armin wrote :If you want to hide a Form and show another one, you >shouldn't use a
Form as the startup object in the project >properties. This should only
be done if a Form is shown >from the start til the end of the
application. Instead, >use your own Sub Main as the startup object.
I agree. I always use Sub Main, even if there is only one form as this
gives far greater coding flexibility.
VB.Net needs a different mind set to VB6. I suggest you get used to
declaring forms and classes etc, it is well worth the effort to get the
most out of .Net.
As a suggestion, make sure there is as little code in the form(s) as
possible. Put all the logic in classes and call the functions as needed.
This makes the code easier to maintain and debug.
Do you know someone who codes in C++ or C#? If so, pick their brains
about how they would structure a similar application.
James
*** Sent via Developersdex
http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!