2006-08-30, 05:31 PM
What do I need to do to enable the ability to use Designer view on a class I created myself? For example...
I have a System Service application which was built from a template in VS .NET 2003 - if I right-click the .cs file in Solution Explorer and select 'View Design' I get a designer that allows me to drag'n'drop database tables from the Database Explorer onto it and it automatically generates the connections, datset, datatable adapter etc. OK - nothing new there.
What I want to do, however, is to do this for a class I created myself. I don't want the main service object to handle the DB or own the dataset, adapter etc. - I want a separate thread created from an object based on my own class to do this.
I can obviously just hand-code all of it but it would be much nicer to have the drag'n'drop capability.
Anyone know how to do this.
Cheers,
Brian
I have a System Service application which was built from a template in VS .NET 2003 - if I right-click the .cs file in Solution Explorer and select 'View Design' I get a designer that allows me to drag'n'drop database tables from the Database Explorer onto it and it automatically generates the connections, datset, datatable adapter etc. OK - nothing new there.
What I want to do, however, is to do this for a class I created myself. I don't want the main service object to handle the DB or own the dataset, adapter etc. - I want a separate thread created from an object based on my own class to do this.
I can obviously just hand-code all of it but it would be much nicer to have the drag'n'drop capability.
Anyone know how to do this.
Cheers,
Brian