Thoughts of Windows Architecture

Posts   
 
    
MarcoP avatar
MarcoP
User
Posts: 270
Joined: 29-Sep-2004
# Posted on: 08-Feb-2005 00:17:48   

I was just wondering if you guys have considered putting all your forms in a seperate project in a windows app, outside of the main .exe. Today I had a developer from another division want to display one of our app forms from within their application. Can you think of any downsides to this? I guess when I think of reuse, I think from the BL down to the DL, not the UI.

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39801
Joined: 17-Aug-2003
# Posted on: 08-Feb-2005 09:34:26   

Why not? A resource is a resource. Though, I have to say, when you have to reuse windows forms, it's better to create them as user controls, and stick them on a form when you need them.

Frans Bouma | Lead developer LLBLGen Pro
MarcoP avatar
MarcoP
User
Posts: 270
Joined: 29-Sep-2004
# Posted on: 08-Feb-2005 14:06:10   

Otis wrote:

Why not? A resource is a resource. Though, I have to say, when you have to reuse windows forms, it's better to create them as user controls, and stick them on a form when you need them.

Yes, I agee. Our application is full of user controls and custom controls, however, they are re-used within our application, not across applications. What is the benefit of re-using usercontrols, rather than forms across apps?

Thanks!

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39801
Joined: 17-Aug-2003
# Posted on: 08-Feb-2005 15:07:29   

MarcoP wrote:

Otis wrote:

Why not? A resource is a resource. Though, I have to say, when you have to reuse windows forms, it's better to create them as user controls, and stick them on a form when you need them.

Yes, I agee. Our application is full of user controls and custom controls, however, they are re-used within our application, not across applications. What is the benefit of re-using usercontrols, rather than forms across apps?

A control can be placed on a form, a form can't be added to a form simple_smile So with a form, you can't use it in a tab control (unless the form is an mdi container) or in other user controls.

Frans Bouma | Lead developer LLBLGen Pro