|
 |
|
|
When I first installed this, everything seemed to work just fine. However, I completely deleted my first project, and for the second, the InteropFormWrapper C# Class Generator is creating VB code in the *Form.wrapper.cs file. I really don't know what is going on here but if someone can post or email me a copy of the real cs wrapper, I can just copy/paste that into my app and I think that it would be okay.
-John
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
|
Well, I just tried translating it myself and (much to my surprise), it worked. I would like to know what i am doing wrong anyway. Thanks for a very useful tool. -John
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
|
I am having issues with the Add in when it is loading. I am getting an error, not sure why, but I did come across something that may help you. Under tools click on the addin manager. Check the C# interopForm wrapper and that it is also checked for startup.
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
|
Can someone please demostrate or supply sample code on how to expose custom properties and methods to the host application using the InteropFormProperty and InteropFormMethod attributes.
Thanks.
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
|
I found a good code example on how to do this at: http://www.codeproject.com/useritems/VB6InteropToolkit2.asp in the CSMultithreadedControl sample project.
Edward Lane
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
|
I copied the 'InteropfromAddin.Addin' from binary, at "My Documents\Visual Studio 2005\Addins". When i restart the VS2005 designer it gives me following error - "The Addin in 'InteropForm Wrapper c# Class generator' failed to load or caused an exception. Would you like to remove this Add-in ?".
Amit
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
|
 |
|
|
just in case someone else has the same problem. There is a .dll included in the project. I moved that .dll to the same folder as the addin. That fixed the error
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
|
Do you plan to make updates to this project for the 2.0 version of Interop Forms Toolkit?
Thanks for your time, Brian Hughes
|
| Sign In·View Thread·PermaLink | 5.00/5 (2 votes) |
|
|
|
 |
|
|
 |
|
|
Never mind, just discovered this:
http://www.codeproject.com/useritems/VB6InteropToolkit2.asp
Works great for controls.
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
|
hi leon i have the addin that u have provided . i can see the 'smily face' in tool 'generate interopform wrapper classes'
project is reffreed in vb but i cant able to see the form on with events.
pls help
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
|
Thanks a lot (i mean it) but: TAB key doesn't work when C# form is used from VB6 I missed something?
Ganar o perder es cosa de dioses, a los hombres solo nos queda luchar...
|
| Sign In·View Thread·PermaLink | 4.00/5 (1 vote) |
|
|
|
 |
|
|
 |
|
|
Great work, but, although I can add more than one form to the project using the interopform toolkit, the client only ever sees the first form that was created.
There seems to be a problem with creating more than one c# coclass in a classlibrary. Even though you can create them the client only ever sees one.
This isn't a problem with vb.net.
Do you know if there is a work around to this problem.
many thanks,
Mark Edwards
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
|
Does anyone have any experience calling the .NET interopForm from Visual Studio 6 C++? If so, what is needed to get it to work from there?
|
| Sign In·View Thread·PermaLink | 2.00/5 (1 vote) |
|
|
|
 |
|
|
As a company we would like to move all of our code to C#, but we share development with a third party who wants to stay at VB6. We currently supply them with a number of VB6 OCX controls which they embed in their applications. We would like to build C# controls but wrap them in a way such that they can continue to use them as OCXs.
I have experimented with the toolkit and been able to popup C# forms from within VB6 but this model and UI experience would be an unacceptable change to the users. I have searched around and come up with the following but none are great.
1. Create Web control inside an ASP.NET page and display it using the internet browser control in VB6.
2. Popup a frameless C# form and attempt to position and move it inline with the parent, yak!!
3. Create UI for the OCX in VB6 but delegate all functionality to a .NET library wrapped so the OCX can call it.
Any other ideas ?
Tanglesoft
|
| Sign In·View Thread·PermaLink | 2.00/5 (1 vote) |
|
|
|
 |
|
|
There is old program and there is need to do new forms in c#!
How to open c# -form in MDIChild in VB6 ?
VB6 form is MDIParent!
-- modified at 3:26 Friday 8th December, 2006
|
| Sign In·View Thread·PermaLink | 1.20/5 (2 votes) |
|
|
|
 |
|
|
Hey Leon,
Sounds great, but I'm not sure of what from the InteropFormCSBinaries.zip file gets moved to where. Could you be a bit more concise for a newbie.
Thanks a bunch
Skater
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
|
Hi Skater, There are two template zip files in InteropFormCSBinaries.zip I suggest you to put at "VB6 Interop Library C#.zip" into [C:]\Documents and Settings\[User Name]\My Documents\Visual Studio 2005\Templates\ProjectTemplates\Visual C#\Windows (Make sure to replace [C:] and [User Name] with actual drive and folder names). The other one ("C# Interop Form.zip") should go into ...\My Documents\Visual Studio 2005\Templates\ItemTemplates. AddIn (files InteropFormAddIn.AddIn and InteropFormAddIn.dll) should go into \My Documents\Visual Studio 2005\AddIns directory.
Hope it helps, if not, let me know. Regards, Leon
------------------------ Langleyben Leon Software Architect MCSD SRL Group ltd leon@srl.co.il 972-54-4860715 972-3-7662020
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
|
Hi Leon,
Thanks for your excellent post.
You created VB6 Interop form Library C#. I would like VB6 interop user control Library C#. Do you have it already?
Actually I would like to user C# user control in VB5 project.
Your any help would highly be appreciated.
I can be reached by Frank2u2u@yahoo.ca
Thank you very much.
Frank
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
|
I created a c# interop form with some buttons, labels and texboxes. I compile the solution and everything compiles. Then I create a new vb6 project referencing Microsoft Interop Library and my newly created C# interop Dll.
VB 6 code: Private Sub Command1_Click() Dim t As SalesUtility.Interop_frmSalesUtility Set t = New SalesUtility.Interop_frmSalesUtility t.Show End Sub
I get a form to display but it is not the form with my buttons, labels and textbox.
Any help is appricaited.
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
|
Hi, There was a problem with form initialization. InitializeComponent() was not called from C# form constructor. It is fixed now. You can download and use updated templates. To fix existing projects, add InitializeComponent() call to original C# form constructor. In your example add
public Interop_frmSalesUtility() { InitializeComponent(); } to Interop_frmSalesUtility.cs Thanks for noting this. Your help is appreciated.
------------------------ Langleyben Leon Software Architect MCSD SRL Group ltd leon@srl.co.il 972-54-4860715 972-3-7662020
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
|
Hey Leon, nice work so far. Problem is I am reproducing the sample in the how-tos from the documentation, but when trying to use the Add-in, it just keeps generating the wrapper class in VB, even though my project was created from scratch as a VB6 Interop Form Library C#, using the template.
Can you point me where to go from here?
Mario Vasquez
|
| Sign In·View Thread·PermaLink | 1.00/5 (1 vote) |
|
|
|
 |
|
|
Thanks Mario, Please check that you are using my Add-In and not original one (from toolkit). You can recognized by siley icon in Tools menu (original one has no icon). I sugest you to rename InteropFormProxyGenerator.AddIn into InteropFormProxyGenerator.AddIn_ in ...\My Documents\Visual Studio 2005\Addins folder to be sure. Check that Add-In is loaded (in Add-In manager). If it fails to load for some reason (you can not see it in Tools menu), try to clear it by rynning devenv /ResetAddin Microsoft.InteropFormTools.InteropFormProxyGenerator.Connect /ResetAddin InteropFormAddIn.Connect command from Visual Studio Command Prompt. Thanks again for your comment, please let me know how it goes
------------------------ Langleyben Leon Software Architect MCSD Software Resources (S.A.B.) ltd leon@srl.co.il 972-54-4860715 972-3-7662020
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |