Convert Windows Application to Windows Control Library
Dear All
I have adapted a C# application (written in VS 2005) to run along side a VB6 app. At the moment the VB 6.0 app dictates when the c# application is run.
Ideally what I would like to do is convert the C# application to a Windows Control Library to give the the VB 6.0 coder so he can use it as a component within his code.
I'm not sure whether this conversion is actually possible, or whether I would have to copy and paste the contols in the C# app into a new Windows Control Library project.
Any help/comments on this would be appreciated
cheers
simon
Re: Convert Windows Application to Windows Control Library
Best advice would be to create a new Windows Control Library project, and as you rightly say, copy and paste the contols into it :)
Re: Convert Windows Application to Windows Control Library
Hi Hannes
I thought that might be the case, as I could find no references on conversion when I did a search. Oh well just means a bit more coding !
cheers
simon
Re: Convert Windows Application to Windows Control Library
I think there is a way (I've just tested it on a simple project and it worked)
go to the "Project > Properties > Application" settings then on the right side change the "Output type" to "Class Library" and finally change the base class of your form(s) from Form to UserControl and change the class access modifier if necessary and if you are using any of the Form class'es method or properties other adjustments might be needed too.