jens-theisen | 6 Jan 22:29 2006
Picon
Picon

simple example somwhere?

Hello,

I'm completely new to both .NET and mono and am stuck using winforms. A  
simple Hello, World example I tried

using System.WinForms;

class MyForm : System.WinForms.Form ...

can't find these symbols in mono 1.1.12. I couldn't find any  
documentation, nor do I see where the symbols are actually defined among  
the files in the mono distribution.

Sorry for such a silly question.

Cheers,

Jens
_______________________________________________
Mono-winforms-list maillist  -  Mono-winforms-list <at> lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-winforms-list

Jonathan S. Chambers | 6 Jan 22:28 2006

RE: simple example somwhere?

Well,
To start it should be:

using System.Windows.Forms;

class MyForm : System.Windows.Forms.Form ...

And when compiling you'll need -r:System.Windows.Forms. If you need any
more help please post all the code.

Thanks,
Jonathan

-----Original Message-----
From: mono-winforms-list-bounces <at> lists.ximian.com
[mailto:mono-winforms-list-bounces <at> lists.ximian.com] On Behalf Of
jens-theisen <at> gmx.de
Sent: Friday, January 06, 2006 4:29 PM
To: mono-winforms-list <at> lists.ximian.com
Subject: [Mono-winforms-list] simple example somwhere?

Hello,

I'm completely new to both .NET and mono and am stuck using winforms. A

simple Hello, World example I tried

using System.WinForms;

class MyForm : System.WinForms.Form ...
(Continue reading)

Mart Roosmaa | 7 Jan 11:38 2006
Picon

Re: simple example somwhere?

Hi,

On 06 Jan 2006 21:29:00 +0000, jens-theisen <at> gmx.de <jens-theisen <at> gmx.de> wrote:
> Hello,
>
> I'm completely new to both .NET and mono and am stuck using winforms. A
> simple Hello, World example I tried
>
> using System.WinForms;
>
> class MyForm : System.WinForms.Form ...
>

Actually the namespace is: "System.Windows.Forms"
And for various examples, check out:
http://svn.myrealbox.com/viewcvs/trunk/winforms/

> can't find these symbols in mono 1.1.12. I couldn't find any
> documentation, nor do I see where the symbols are actually defined among
> the files in the mono distribution.
>

If documentations in monodoc won't do it for you, you can always use msdn.

Mart
_______________________________________________
Mono-winforms-list maillist  -  Mono-winforms-list <at> lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-winforms-list

(Continue reading)

Shmarya Rubenstein | 7 Jan 22:56 2006
Picon

Getting Mono + WinForms to Compile

Hi,

I've been trying without much success to get Mono + SWF to compile on my OSX machine...

Is there anyone who has managed to do this who could possibly provide some type of step to step, or even assist me in troubleshooting???

Thanks,

--
Shmarya
-----------------------------------------------------------
shmarya.rubenstein <at> gmail.com - http://idp.satr-it.com

_______________________________________________
Mono-winforms-list maillist  -  Mono-winforms-list <at> lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-winforms-list
Jonathan S. Chambers | 8 Jan 17:35 2006

Patch for bugs 76857 and 76788

Someone please approve (and close bugs if acceptable).

Thanks,
Jonathan

-----Original Message-----
From:	mono-winforms-list-bounces <at> lists.ximian.com on behalf of NEMO777 (sent by Nabble.com)
Sent:	Fri 12/23/2005 10:14 AM
To:	mono-winforms-list <at> lists.ximian.com
Cc:	
Subject:	[Mono-winforms-list] TextBox error

hi

i'm trying to run this:

using System;
using System.Drawing;
using System.Windows.Forms;

public class Form1 : Form
{
 TextBox textBox1 = new TextBox();

 public Form1()
 {
  textBox1.Location = new Point(176, 48);
  textBox1.Name = "textBox1";
  textBox1.Size = new Size(112, 20);
  textBox1.Text = "";

  Controls.Add(textBox1);
 }

 static void Main() 
 {
  Application.Run(new Form1());
 }
}

"mcs /r:System.Windows.Forms /r:System.Drawing x.cs" runs clean, but when I try to run the exe i get this:

Mono System.Windows.Forms Assembly [Revision: 54007; built: 2005/12/6 14:35:24]
Keyboard: United States keyboard layout (phantom key version)
Gtk colorscheme read

Unhandled Exception: System.ArgumentException: '0' is not a valid value for 'Value'. 'Value' should be
between 'Minimum' and 'Maximum'
in <0x000a7> System.Windows.Forms.ScrollBar:SetValue (Int32 value)
in <0x00146> System.Windows.Forms.ScrollBar:UpdatePos (Int32 newPos, Boolean update_thumbpos)
in <0x00057> System.Windows.Forms.ScrollBar:set_Maximum (Int32 value)
in (wrapper remoting-invoke-with-check) System.Windows.Forms.ScrollBar:set_Maximum (int)
in <0x001f1> System.Windows.Forms.TextBoxBase:CalculateScrollBars ()
in <0x0000a> System.Windows.Forms.TextBoxBase:document_HeightChanged (System.Object sender,
System.EventArgs e)
in (wrapper delegate-invoke) System.MulticastDelegate:invoke_void_object_EventArgs (object,System.EventArgs)
in <0x00350> System.Windows.Forms.Document:RecalculateDocument (System.Drawing.Graphics g,
Int32 start, Int32 end, Boolean optimize)
in <0x00017> System.Windows.Forms.Document:RecalculateDocument (System.Drawing.Graphics g)
in <0x00026> System.Windows.Forms.Document:owner_HandleCreated (System.Object sender,
System.EventArgs e)
in (wrapper delegate-invoke) System.MulticastDelegate:invoke_void_object_EventArgs (object,System.EventArgs)
in <0x00023> System.Windows.Forms.Control:OnHandleCreated (System.EventArgs e)
in <0x0000d> System.Windows.Forms.TextBoxBase:OnHandleCreated (System.EventArgs e)
in <0x0000d> System.Windows.Forms.TextBox:OnHandleCreated (System.EventArgs e)
in <0x000e4> System.Windows.Forms.Control:CreateHandle ()
in <0x0000a> System.Windows.Forms.TextBoxBase:CreateHandle ()
in <0x00029> System.Windows.Forms.Control:CreateControl ()
in <0x0007b> System.Windows.Forms.Control:OnVisibleChanged (System.EventArgs e)
in <0x00182> System.Windows.Forms.Control:ChangeParent (System.Windows.Forms.Control new_parent)
in (wrapper remoting-invoke-with-check) System.Windows.Forms.Control:ChangeParent (System.Windows.Forms.Control)
in <0x001a9> System.Windows.Forms.Control+ControlCollection:Add (System.Windows.Forms.Control value)
in <0x000fd> Form1:.ctor ()
in (wrapper remoting-invoke-with-check) Form1:.ctor ()
in <0x00018> Form1:Main ()

I use mono-1.1.12.1 and libgdiplus-1.1.11 and Gentoo Linux.
i'm new here and can some one just tell mi why this happens, is it because i've got something wrong or is it a
bug... or just MWF isn't working yet with TextBox's

Bye
--
Sent from the Mono - WinForms forum at Nabble.com:
http://www.nabble.com/TextBox-error-t797793.html#a2076284

Attachment (ComboBox.diff): application/octet-stream, 2233 bytes
_______________________________________________
Mono-winforms-list maillist  -  Mono-winforms-list <at> lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-winforms-list
Miguel de Icaza | 8 Jan 17:45 2006

Re: Getting Mono + WinForms to Compile

Hello,

> I've been trying without much success to get Mono + SWF to compile on
> my OSX machine...

You need to provide more details.

> Is there anyone who has managed to do this who could possibly provide
> some type of step to step, or even assist me in troubleshooting??? 
> 
> Thanks,
> 
> -- 
> Shmarya
> -----------------------------------------------------------
> shmarya.rubenstein <at> gmail.com - http://idp.satr-it.com 
> _______________________________________________
> Mono-winforms-list maillist  -  Mono-winforms-list <at> lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-winforms-list
--

-- 
Miguel de Icaza <miguel <at> ximian.com>
_______________________________________________
Mono-winforms-list maillist  -  Mono-winforms-list <at> lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-winforms-list

Everaldo Canuto | 9 Jan 10:16 2006
Picon

libgdi problems with gcc 4.0.2

Hi all,

I was some problems to compila libgdiplus in my Ubuntu Dapper box with
gcc 4.0.2. This is error:

    "Error: symbol `_cairo_pixman_composite' is already defined"

After search for problem in cairo buglist I found the bug and the patch
to fix:

   https://bugs.freedesktop.org/show_bug.cgi?id=5136

Basically the patch is only remove of 2 lines:

  -#define INT_pixman_color_to_pixel _cairo_pixman_color_to_pixel
  -#define INT_pixman_composite _cairo_pixman_composite

After this all works fine in my box :)

So... my question is: Can I apply this patch in Mono SVN?

Thanks,
Everaldo.

_______________________________________________
Mono-winforms-list maillist  -  Mono-winforms-list <at> lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-winforms-list

Peter Dennis Bartok | 9 Jan 10:45 2006

Re: libgdi problems with gcc 4.0.2

Yes, please go ahead and apply the patch.

Thanks,
  Peter

-----Original Message-----
From: "Everaldo Canuto" <everaldo.canuto <at> gmail.com>
To: <mono-winforms-list <at> lists.ximian.com>
Date: Monday, 09 January, 2006 02:16
Subject: [Mono-winforms-list] libgdi problems with gcc 4.0.2

>Hi all,
>
>I was some problems to compila libgdiplus in my Ubuntu Dapper box with
>gcc 4.0.2. This is error:
>
>    "Error: symbol `_cairo_pixman_composite' is already defined"
>
>
>After search for problem in cairo buglist I found the bug and the patch
>to fix:
>
>   https://bugs.freedesktop.org/show_bug.cgi?id=5136
>
>
>Basically the patch is only remove of 2 lines:
>
>  -#define INT_pixman_color_to_pixel _cairo_pixman_color_to_pixel
>  -#define INT_pixman_composite _cairo_pixman_composite
>
>After this all works fine in my box :)
>
>So... my question is: Can I apply this patch in Mono SVN?
>
>
>Thanks,
>Everaldo.
>
>_______________________________________________
>Mono-winforms-list maillist  -  Mono-winforms-list <at> lists.ximian.com
>http://lists.ximian.com/mailman/listinfo/mono-winforms-list
>
>
_______________________________________________
Mono-winforms-list maillist  -  Mono-winforms-list <at> lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-winforms-list

jba | 9 Jan 11:18 2006
Picon

Re: libgdi problems with gcc 4.0.2

Will this affect those of us not using gcc 4?
On Mon, 2006-01-09 at 02:45 -0700, Peter Dennis Bartok wrote:
> Yes, please go ahead and apply the patch.
> 
> Thanks,
>   Peter
> 
> -----Original Message-----
> From: "Everaldo Canuto" <everaldo.canuto <at> gmail.com>
> To: <mono-winforms-list <at> lists.ximian.com>
> Date: Monday, 09 January, 2006 02:16
> Subject: [Mono-winforms-list] libgdi problems with gcc 4.0.2
> 
> 
> >Hi all,
> >
> >I was some problems to compila libgdiplus in my Ubuntu Dapper box with
> >gcc 4.0.2. This is error:
> >
> >    "Error: symbol `_cairo_pixman_composite' is already defined"
> >
> >
> >After search for problem in cairo buglist I found the bug and the patch
> >to fix:
> >
> >   https://bugs.freedesktop.org/show_bug.cgi?id=5136
> >
> >
> >Basically the patch is only remove of 2 lines:
> >
> >  -#define INT_pixman_color_to_pixel _cairo_pixman_color_to_pixel
> >  -#define INT_pixman_composite _cairo_pixman_composite
> >
> >After this all works fine in my box :)
> >
> >So... my question is: Can I apply this patch in Mono SVN?
> >
> >
> >Thanks,
> >Everaldo.
> >
> >_______________________________________________
> >Mono-winforms-list maillist  -  Mono-winforms-list <at> lists.ximian.com
> >http://lists.ximian.com/mailman/listinfo/mono-winforms-list
> >
> >
> _______________________________________________
> Mono-winforms-list maillist  -  Mono-winforms-list <at> lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-winforms-list

_______________________________________________
Mono-winforms-list maillist  -  Mono-winforms-list <at> lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-winforms-list

Everaldo Canuto | 9 Jan 11:32 2006
Picon

Re: libgdi problems with gcc 4.0.2

Hi,

I test with gcc-3.4 and works fine.
Patch applyed.

Thanks,
Everaldo

Em Seg, 2006-01-09 às 21:18 +1100, jba escreveu:
> Will this affect those of us not using gcc 4?
> On Mon, 2006-01-09 at 02:45 -0700, Peter Dennis Bartok wrote:
> > Yes, please go ahead and apply the patch.
> > 
> > Thanks,
> >   Peter
> > 
> > -----Original Message-----
> > From: "Everaldo Canuto" <everaldo.canuto <at> gmail.com>
> > To: <mono-winforms-list <at> lists.ximian.com>
> > Date: Monday, 09 January, 2006 02:16
> > Subject: [Mono-winforms-list] libgdi problems with gcc 4.0.2
> > 
> > 
> > >Hi all,
> > >
> > >I was some problems to compila libgdiplus in my Ubuntu Dapper box with
> > >gcc 4.0.2. This is error:
> > >
> > >    "Error: symbol `_cairo_pixman_composite' is already defined"
> > >
> > >
> > >After search for problem in cairo buglist I found the bug and the patch
> > >to fix:
> > >
> > >   https://bugs.freedesktop.org/show_bug.cgi?id=5136
> > >
> > >
> > >Basically the patch is only remove of 2 lines:
> > >
> > >  -#define INT_pixman_color_to_pixel _cairo_pixman_color_to_pixel
> > >  -#define INT_pixman_composite _cairo_pixman_composite
> > >
> > >After this all works fine in my box :)
> > >
> > >So... my question is: Can I apply this patch in Mono SVN?
> > >
> > >
> > >Thanks,
> > >Everaldo.
> > >
> > >_______________________________________________
> > >Mono-winforms-list maillist  -  Mono-winforms-list <at> lists.ximian.com
> > >http://lists.ximian.com/mailman/listinfo/mono-winforms-list
> > >
> > >
> > _______________________________________________
> > Mono-winforms-list maillist  -  Mono-winforms-list <at> lists.ximian.com
> > http://lists.ximian.com/mailman/listinfo/mono-winforms-list
> 

_______________________________________________
Mono-winforms-list maillist  -  Mono-winforms-list <at> lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-winforms-list


Gmane