|
-
February 18th, 2010, 07:15 AM
#1
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
-
February 18th, 2010, 07:24 AM
#2
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
-
February 18th, 2010, 11:41 AM
#3
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
-
February 18th, 2010, 12:15 PM
#4
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.
Last edited by memeloo; February 18th, 2010 at 12:18 PM.
win7 x86, VS 2008 & 2010, C++/CLI, C#, .NET 3.5 & 4.0, VB.NET, VBA... WPF is comming
remeber to give feedback  you think my response deserves recognition? perhaps you may want to click the Rate this post link/button and add to my reputation
private lessons are not an option so please don't ask for help in private, I won't replay
if you use Opera and you'd like to have the tab-button functionality for the texteditor take a look at my Opera Tab-UserScirpt; and if you know how to stop firefox from jumping to the next control when you hit tab let me know
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|