

' Display a successful compilation message. Sb.Append(ce.ToString & ControlChars.NewLine) 'Dim exeName As String = String.Format("" , sourceName, cr.PathToAssembly) ' Build the output assembly path using the current directory Provider = .CreateProvider( "VisualBasic" )Ĭonsole.WriteLine( "Source file must have a .cs or .vb extension" ) Provider = .CreateProvider( "CSharp" )ĮlseIf () = ".VB" Then ' Select the code provider based on the input file extension. SourceFile As System.IO.FileInfo = New System.IO.FileInfo(sourceName) MessageBox.Show( "C:\Test.Vb " & Success.ToString & ControlChars.NewLine) Success = CompileExecutable( "C:\Test.Vb" ) Then after you have done all thatrun the following code with one buttonon a FORM please.>

Object, ByValĮ As System.EventArgs) Handles Button1.Click AutoScaleMode = .Fontīutton1_Click( ByVal sender As System. 'NOTE: The following procedure is required by the Windows Form Designer

If disposing AndAlso components IsNot Nothing Then 'Form overrides dispose to clean up the component list.
