Home All Groups Group Topic Archive Search About

Project consisting of multiple projects

Author
3 Jun 2009 2:12 PM
Sheldon
Hello -

I have an application I've been working on which is basically a combination
of four different applications.  The users want to be able to access all
applications from one spot.  Two of the applications consist of five forms
each.  I used a tab strip for user access to each of the four applications.

Thus far, I have only incorporated two of the applications.  The thought
just occurred to me, should I have designed this to consist of four projects
in one solution?  If I do that, what would be the best way for users to
access the different projects?

--
Sheldon
Author
16 Jun 2009 3:44 PM
Gregory A. Beamer
=?Utf-8?B?U2hlbGRvbg==?= <Shel***@discussions.microsoft.com> wrote in
Show quoteHide quote
news:0BAEAD02-8364-4678-AC0F-C3DCA55222F6@microsoft.com:

> Hello -
>
> I have an application I've been working on which is basically a
> combination of four different applications.  The users want to be able
> to access all applications from one spot.  Two of the applications
> consist of five forms each.  I used a tab strip for user access to
> each of the four applications.
>
> Thus far, I have only incorporated two of the applications.  The
> thought just occurred to me, should I have designed this to consist of
> four projects in one solution?  If I do that, what would be the best
> way for users to access the different projects?
>



If they are four separate apps, you will have to create an app launcher
appliation and spin up the different apps based on the user's input (which
app he wishes to open).

if you have defined the actual app logic in class libraries, you can merge
the apps into a single application, but if they are truly separate apps,
you will have to launch them.

NOTE: You can launch apps from inside your other apps, but be careful if
only one instance should be opened, as they can go on a launch fest and
possibly create issues.

NOTE: Launching separate apps is generally done via a Process object.


--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

Twitter: @gbworld
Blog: http://gregorybeamer.spaces.live.com

*******************************************
Show quoteHide quote
|      Think outside the box!             |
*******************************************
Are all your drivers up to date? click for free checkup

Author
16 Jun 2009 8:14 PM
Sheldon
Thanks for your response, Gregory.  You mentioned the following:

>NOTE: You can launch apps from inside your other apps, but be careful if
>only one instance should be opened, as they can go on a launch fest and
>possibly create issues.

How would I prevent this from happening?  Is there some way to close down
one application when they click on another tab?

How can I test to see if this is happening?

--
Sheldon


Show quoteHide quote
"Gregory A. Beamer" wrote:

> =?Utf-8?B?U2hlbGRvbg==?= <Shel***@discussions.microsoft.com> wrote in
> news:0BAEAD02-8364-4678-AC0F-C3DCA55222F6@microsoft.com:
>
> > Hello -
> >
> > I have an application I've been working on which is basically a
> > combination of four different applications.  The users want to be able
> > to access all applications from one spot.  Two of the applications
> > consist of five forms each.  I used a tab strip for user access to
> > each of the four applications.
> >
> > Thus far, I have only incorporated two of the applications.  The
> > thought just occurred to me, should I have designed this to consist of
> > four projects in one solution?  If I do that, what would be the best
> > way for users to access the different projects?
> >
>
>
>
> If they are four separate apps, you will have to create an app launcher
> appliation and spin up the different apps based on the user's input (which
> app he wishes to open).
>
> if you have defined the actual app logic in class libraries, you can merge
> the apps into a single application, but if they are truly separate apps,
> you will have to launch them.
>
> NOTE: You can launch apps from inside your other apps, but be careful if
> only one instance should be opened, as they can go on a launch fest and
> possibly create issues.
>
> NOTE: Launching separate apps is generally done via a Process object.
>
>
> --
> Gregory A. Beamer
> MVP; MCP: +I, SE, SD, DBA
>
> Twitter: @gbworld
> Blog: http://gregorybeamer.spaces.live.com
>
> *******************************************
> |      Think outside the box!             |
> *******************************************
>
Author
17 Jun 2009 6:41 PM
Gregory A. Beamer
=?Utf-8?B?U2hlbGRvbg==?= <Shel***@discussions.microsoft.com> wrote in
news:463DF100-8C96-4A37-BD52-6693DE91CF3A@microsoft.com:

> Thanks for your response, Gregory.  You mentioned the following:
>
>>NOTE: You can launch apps from inside your other apps, but be careful
>>if only one instance should be opened, as they can go on a launch fest
>>and possibly create issues.
>
> How would I prevent this from happening?  Is there some way to close
> down one application when they click on another tab?


here is an article for checking if an app is already running or not:
http://www.codeproject.com/KB/dialog/PrevInstance.aspx


As for shutting down an application that is running, I know you can do this
with PInvoke on the windows libs with the application handle. I do not have
a link or code sample for this. If you go this route, be sure you have a
cleanup on shutdown for your apps, just in case they had something open in
edit mode.


--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

Twitter: @gbworld
Blog: http://gregorybeamer.spaces.live.com

*******************************************
Show quoteHide quote
|      Think outside the box!             |
*******************************************

Bookmark and Share