Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Host C# winforms in VB6 applications

Tags:

c#

winforms

vb6

I have a VB 6 application and we are starting to port it over to C#. We have finished one of the screens and wanted to see if there was an incremental way of hosting the winform within VB to start to have the existing users get used to new screens. This is a migration strategy..

Any thoughts.

like image 355
leora Avatar asked Oct 16 '08 21:10

leora


People also ask

What is host C key?

You just need to press a combination of Host key and C on your keyboard (Host Key + C). You might be wondering about the Host Key. A host key in VirtualBox is a dedicated key that returns the ownership of peripheral devices (Keyboard & Mouse) to the host operating system.

What is host key on keyboard?

The default Host key is the Right Ctrl key. Note. Some of the available Host Key options might not work on your computer. If the configured Host key does not work, use an alternative Host key.

What is host key VirtualBox?

To return ownership of keyboard and mouse to your host OS, Oracle VM VirtualBox reserves a special key on your keyboard: the Host key. By default, this is the right Ctrl key on your keyboard.

How do I get 1920x1080 resolution in VirtualBox?

Go to the File menu and activate Environment setting or, in more recent versions, Preferences. Select Display and change the setting for Maximum guest screen size to “hint” which allows you to set an arbitrary size for both width and height (e. g. 1920 and 1200). Reboot the virtual machine and enjoy it.


Video Answer


2 Answers

The Interop Forms Toolkit allows you to create .NET Forms and User Controls that can be used in VB 6.0 applications. This allows you to migrate VB 6.0 applications to .NET over time (a form or part of a form at a time). However, the toolkit relies on features from the Microsoft.VisualBasic assembly and the VB.NET compiler so it doesn't work with C#.

There are a couple articles/samples on CodeProject.com that discuss the toolkit and how to use it with C#.

Interop Forms Toolkit 2.0 Tutorial

VB6 - C# Interop Form Toolkit

Beth Massi has several articles and webcasts on the use of the Toolkit you can use for reference. Check out her blog for links to resources.

like image 143
Rob Windsor Avatar answered Sep 22 '22 00:09

Rob Windsor


Have you looked at this? Direct Link to Product here

like image 31
JamesSugrue Avatar answered Sep 18 '22 00:09

JamesSugrue