Global Name for TreeView

M

mr.Hyde

Hi,

My component is working with databse,
one of method fills treeview and
I want to use it in ASP and WinForms also,
but if I join using System.Windows.Forms to this component
will can't use it in ASP and webforms vice'versa,
How I should to do this?

Thanx for help.
Hyde
 
C

Cowboy \(Gregory A. Beamer\)

You could, potentially, write a class that could be used in both, but the
amount of coding already done in the framework is lost. You would have to
have hte component figure out where it was (configuration would be easiest,
possibly through reflection on its parent, etc.), but it would cost more
time than coding two components.

My suggestion: Move all but the binding info to a class library and code two
GUI components that use the underlying component. It gives you the most
reuse and makes the job a bit easier to complete.


--
Gregory A. Beamer

*************************************************
Think Outside the Box!
*************************************************
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top