[Mono-dev] System.Windows.Forms and mbas
Mario Carrión
mario.carrion at gmail.com
Sat Sep 3 03:16:49 EDT 2005
On 9/2/05, Thomas Cleenewerck <tcleenewerck at gmail.com> wrote:
> I'm trying to get the following example working on winxp with mono-1.0.5:
Upgrade to 1.1.8, works fine with me.
Cheers
-----
Mario Carrión <mario.carrion at gmail.com>
>
> imports System
> imports System.Windows.Forms
>
> Module Hello
>
> sub Main()
> dim f as new System.Windows.Forms.Form()
> dim c as new Collection()
> Console.WriteLine("Hello World vb.mono")
> end sub
>
> end module
>
> I'm compiling the program using
> mbas /r:System.Windows.Forms helloworld.vb
>
> Upon execution I get the following error:
> Unhandled Exception: System.ArgumentException: Invalid Parameter. A null
> referen
> ce or invalid value was found.
> in <0x00073> System.Drawing.GDIPlus:CheckStatus
> (System.Drawing.Status)
> in <0x00182> System.Drawing.Font:FromHfont (intptr)
> in <0x00015> System.Windows.Forms.Control:get_DefaultFont
> ()
> in <0x001af> System.Windows.Forms.Control:.ctor ()
> in <0x00010> System.Windows.Forms.ScrollableControl:.ctor
> ()
> in <0x00012> System.Windows.Forms.ContainerControl:.ctor ()
> in <0x00016> System.Windows.Forms.Form:.ctor ()
> in <0x0004c> (wrapper remoting-invoke-with-check)
> System.Windows.Forms.Form:.cto
> r ()
> in <0x00028> Hello:Main ()
>
> _______________________________________________
> Mono-devel-list mailing list
> Mono-devel-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-devel-list
>
>
>
More information about the Mono-devel-list
mailing list