A group blog from members of the VB team
Recently the VB team released the Interop Forms Toolkit, which allows VB6 developers to extend their existing applications using .NET. The toolkit allows developers to write a regular Windows Form in VB.NET, click “Generate Wrapper Classes”, and then call those forms from VB6. It also provides mechanisms for firing and handling events, and sharing application state (i.e. Globals).
We’ve heard a lot of great feedback since the release. For example, we heard that a better interop story and things like the toolkit help enable more gradual migrations. We also heard that several scenarios would benefit from additional support. Based on this we’ve been planning our next steps.
Here’s a preview of the direction we’d like to head in with interop. Two of the main areas we’re looking at are:
You can think of UserControl support as an extension to the Interop Forms Toolkit that adds a few more flexible ways to handle UI interop. For example, UserControls allow users to add .NET UI extensions within the same form. Also, given that a UserControl can be added to any VB6 form, there is good fidelity and communication between the VB6 forms.
As a case in point, MDI form scenarios are not supported by the current Interop Forms Toolkit due to several limitations with Windows Forms interop and the VB6 IDE. MDI support has been a top request since the release. The good news is that we believe the UserControl approach enables interop with MDI forms!
We have decided to share a very early (community supported only) Interop UserControl prototype with you to validate our direction and approach. This prototype is a UserControl project template for VS 2005 that includes attributes, helper functions, configuration, and workarounds required to do basic UserControl interop scenarios. You can use it to create a UserControl with UI, methods, properties, and even events. Simply build it and then add it to your VB6 toolbox.
To install the template, please see the file attached below called InteropUserControl.zip. This is a Visual Studio 2005 template that you can try out by placing it in your “My Documents\Visual Studio 2005\Templates\ProjectTemplates\Visual Basic” folder. Again, this is only an early prototype so expect to hit some issues and use workarounds. We hope to release a more complete version of this in the future.
We’re really interested in your feedback on this approach, so please try out the template and let us know what you think!
Jonathan Aneja & Paul Yuknewicz
Sir I have finished Bsc computer Science I have Studying Vb.Net Or
Java Sir I have a One Project In Vb backend Oracle
Vb.net Is must Or Java
Must Which Is Must Sir
Sir One Question
How to Connect Addodb Connection
Tell Me YOur Answer briefly Sir How To Connect Vb With Oracle Sir
The UserControl prototype is awesome. I've been needing something like this for years. I'm having an issue that you may have insight to. I posted about it here:
This is definitely a step in the right direction. Please get this to fully supported status soon.
Well, it looks like there is some confusion in the rendering. The user control believes that it is 98 pixels wider, and 92 pixels taller than it actually is. I have added panels which fill this area, and they never display in my ActiveX control.
The upside is that it is a fixed dimension, rather than proportional.
Well, why would anyone want to do that? If you've been programming VB5/6 for any length of time, you already have everything you'd ever need to build a desktop app... that is, if you've ever heard of reusable code. I mean, why slow down a perfectly good VB app with bloatware.Net
To Azhagriri:... if you're still around. If you post your question to the public newsgroups, you'll get plenty of answers.