StrataFrame Forum

SF Maintenance Form functionality implemented in a SF UserControl

http://forum.strataframe.net/Topic739.aspx

By Kari Paukku - 3/26/2006

Hi,

would it be possible - and if yes, how - to have the functionality (New,Edit, Delete etc) of a SF Maintenance Form implemented in a SF UserControl?

The reason for asking this is that I'm hoping that it would be possible to use the same UserObjects both in WinForms and WebForms.

As I'm quite new to the .Net world this may not be a good idea. In an other environment I have done this and it has worked quite well.

TIa,

Kari

By StrataFrame Team - 3/27/2006

Kari,



You cannot use the same user controls for both WinForms and WebForms applications. A WinForms control inherits from System.Windows.Forms.UserControl, while a WebForms control inherits from System.Web.UI.WebControls.WebControl. The functionality of the base classes is completely different. You can, however, create a "sealed" class that contains all of the code implementing the functionality you desire, and then just create the user control "wrappers" for that sealed class. Very little of the user interface can be reused between WinForms and WebForms... that's why SF is designed to put most of the application logic in the Business Layer.
By Kari Paukku - 3/27/2006

ok, thanks....
By Trent L. Taylor - 3/27/2006

Kari,

If you need some help getting started please let me know.  Don't spend a bunch of time before asking for help on this, that is why we are here Wink

By Kari Paukku - 3/28/2006

Trent,

thank you for your kind offer. What I have in mind is to wait for your new demos and then on April gradually start to do the programming. My purpose is to port parts of a existing PowerBuilder application to the .Net world, both as a WinForm and WebForm application.

As I'm quite new at .Net world it will take a moment to pick up it. There the samples will come handy.

Cheers,

Kari

By Trent L. Taylor - 3/28/2006

Kari,

Your plan to move forward sounds good.  Well just know that as you migrate your application, you have a place to go for some answers Wink  The "official" new update should be available around April 10-12th and will include much more documentation and some additional tutorials.  We will send out an email to all of our users when the new update is available so you can download the update.  We look forward to working with you...welcome to the StrataFrame community!