Developer, Former MVP, now at Microsoft - Best of 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013
ProgramMixed.cs
namespace MixedLanguages { static class Program { [System.STAThread] static void Main() { System.Windows.Forms.Application.Run( new MixedLanguages.Form1()); } }}
Form1Mixed.vb
Namespace MixedLanguages Public Class Form1 Inherits System.Windows.Forms.Form Public Sub New() Me.Text = "Run from Csharp code" Me.MinimizeBox = False End Sub End ClassEnd Namespace
vbc /netcf /noconfig /nostdlib /r:"E:\Program Files\Microsoft Visual Studio 8\SDK\v2.0\CompactFramework\WindowsCE\mscorlib.dll","E:\Program Files\Microsoft Visual Studio 8\SDK\v2.0\CompactFramework\WindowsCE\System.dll","E:\Program Files\Microsoft Visual Studio 8\SDK\v2.0\CompactFramework\WindowsCE\System.Windows.Forms.dll" /t:module Form1Mixed.vb
Form1Mixed.netmodule
csc /noconfig /nostdlib /r:"E:\Program Files\Microsoft Visual Studio 8\SDK\v2.0\CompactFramework\WindowsCE\mscorlib.dll","E:\Program Files\Microsoft Visual Studio 8\SDK\v2.0\CompactFramework\WindowsCE\System.dll","E:\Program Files\Microsoft Visual Studio 8\SDK\v2.0\CompactFramework\WindowsCE\System.Windows.Forms.dll" /addmodule:Form1Mixed.netmodule ProgramMixed.cs
ProgramMixed.exe
Microsoft (R) Visual Basic .NET Compiler version 8.0.40607.16for Microsoft (R) .NET Framework version 2.0.40607.16Copyright (C) Microsoft Corporation 1987-2003. All rights reserved.