|
Group: StrataFrame Developers
Posts: 3K,
Visits: 2.5K
|
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.
|