my mistake. its not the "Region" statement....it is the lack of the empty () on Me.InitializeComponent that are causing the build to fail.

On 11/2/05, Kevin Thompson <[EMAIL PROTECTED] > wrote:
When i run the command:

mono mbas /t:winexe /out:editor-ms.exe /r:System.Windows.Forms.dll,System.dll,System.Drawing.dll /main:MainForm ./vbeditor.vb


I get this compilation error:
syntax error, got token `EOL'
./vbeditor.vb(11,0) error BC30201: _expression_ expected
./vbeditor.vb(27,12) error BC30205: '#End Region' must be preceded  by a matchin
g '#Region'
Compilation failed: 2 Error(s), 0 warnings

================================ vbeditor.vb ===========================================
Imports System.Windows.Forms

Public Class MainForm
    Inherits System.Windows.Forms.Form
   
    Public Sub New()
        '
        ' The Me.InitializeComponent call is required for Windows Forms designer support.
        '
        Me.InitializeComponent
        '
        ' TODO : Add constructor code after InitializeComponents
        '
    End Sub
   
    #Region " Windows Forms Designer generated code "
    ' This method is required for Windows Forms designer support.
    ' Do not change the method contents inside the source code editor. The Forms designer might
    ' not be able to load this method if it was changed manually.
    Private Sub InitializeComponent()
        '
        'Form1
        '
        'Me.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font
        Me.ClientSize = New System.Drawing.Size(292, 266)
        Me.Name = "MainForm"
        Me.Text = "MainForm"
    End Sub
    #End Region
   
End Class
====================================================================================


--
Kevin



--
Kevin
_______________________________________________
Mono-vb mailing list
[email protected]
http://lists.ximian.com/mailman/listinfo/mono-vb

Reply via email to