| CodeGuru Home | VC++ / MFC / C++ | .NET / C# | Visual Basic | Newsletters | VB Forums | Developer.com |
|
|||||||
| C-Sharp Programming Post questions, answers, and comments about C#. |
![]() |
|
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#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 |
|
#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
__________________
2008 - 2010My Latest Articles : Creating Your Own Tetris Game With VB.NET Part 1 || Part 2 || Part 3 || Visual Studio 2010 & .NET Framework 4 Available Find All My Articles : Here FAQs : .NET FrameWork FAQs || Visual Basic.NET FAQs || C# FAQs || VB 6 FAQs || CG Daily News Great battles kick up a lot of dirt. Obscures the battle field, so the generals can't see what's going on - House Season 2 Episode 18 Read This Before You Post || Acceptable Use Policy
|
|
#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 |
|
#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.
__________________
win7 x86, VS 2008, C++/CLI, C#, .NET 3.5, VB.NET, VBA remeber to give feedback and if you think my response deserves recognition perhaps you may want to click the Rate this post link/button
Last edited by memeloo; February 18th, 2010 at 11:18 AM. |
![]() |
| Bookmarks |
|
||||||
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|