[mono-vb] Re: "#Region"s supported?

Kevin Thompson mrunleaded at gmail.com
Thu Nov 3 01:30:14 EST 2005


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 <mrunleaded at gmail.com> 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-vb/attachments/20051102/d8d3c63c/attachment-0001.html


More information about the Mono-vb mailing list