|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Using .NET user controls into VB6I just developed a small form in C# to use inside of my old VB6 programs. My first step was to build a new WindowsControlLibrary project and add the usercontrol to it. It compiled, a DLL was built, and by setting the "Register for COM Interop" to TRUE a .tlb file was also built. I added this tlb file as a reference into VB6. Now I put a menu item and in the code for the menu item the following: Dim myControl As MyControl.UserControl1 How do I show the control to the user now? Any ideas? Sorry if this sounds stupid. Thanks! Eduardo <emferr***@gmail.com> schrieb:
Show quoteHide quote > I just developed a small form in C# to use inside of my old VB6 This scenario is not supported.> programs. > My first step was to build a new WindowsControlLibrary project and add > the usercontrol to it. > It compiled, a DLL was built, and by setting the "Register for COM > Interop" to TRUE a .tlb file was also built. I added this tlb file as a > reference into VB6. > > Now I put a menu item and in the code for the menu item the following: > > Dim myControl As MyControl.UserControl1 > > How do I show the control to the user now? Any ideas? Sorry if this > sounds stupid. -- M S Herfried K. Wagner M V P <URL:http://dotnet.mvps.org/> V B <URL:http://classicvb.org/petition/> How about this:
I write a C# application and call it from VB6 as a normal executable. There is SOME WAY that I can have access to the controls of the screen, such as, textbox, combobox, buttons, etc. If not, there is a way to create a collection of these objects and pass as a parameter to the program ? Thanks! Eduardo Herfried K. Wagner [MVP] wrote: Show quoteHide quote > <emferr***@gmail.com> schrieb: > > I just developed a small form in C# to use inside of my old VB6 > > programs. > > My first step was to build a new WindowsControlLibrary project and add > > the usercontrol to it. > > It compiled, a DLL was built, and by setting the "Register for COM > > Interop" to TRUE a .tlb file was also built. I added this tlb file as a > > reference into VB6. > > > > Now I put a menu item and in the code for the menu item the following: > > > > Dim myControl As MyControl.UserControl1 > > > > How do I show the control to the user now? Any ideas? Sorry if this > > sounds stupid. > > This scenario is not supported. > > -- > M S Herfried K. Wagner > M V P <URL:http://dotnet.mvps.org/> > V B <URL:http://classicvb.org/petition/>
Write to an XML file using data from an SQLserver table
Master Page Template ListBox Problem DataBinding with Unbound Columns and calling EndCurrentEdit Limit ComboBox entry to ipaddress format firing a dts package's execution How To Show Partial Classes as a Hierarchy in Solution Explorer? XML WebSvc Proxy Code Syntax Questions Passing a parameter Collection Burn CD in vb 2005 |
|||||||||||||||||||||||