[Mono-winforms-list] invalidate

Miguel de Icaza miguel at ximian.com
Tue May 30 19:13:48 EDT 2006


Hello,

> The following code draws a line with Mono on Windows but doesn't do 
> anything on Linux. I'm using Monoppix with Mono 1.1.8. Can anyone tell 
> me if this issue is solved with recent releases?

You are using a Mono which is way too old.

The first Mono to come with a beta of Windows.Forms was 1.1.13, so its
about one year old.   The current version is Mono 1.1.15.

> Thank you.
> 
> ------------------------------------------------------
> using System;
> using System.Drawing;
> using System.Windows.Forms;
> using System.Threading;
> 
> namespace WindowsApplication1
> {
> 	public class Form1 : System.Windows.Forms.Form
> 	{
> 		private int i;
> 		
> 		[STAThread]
> 		static void Main()
> 		{
> 			Application.Run(new Form1());
> 		}
> 
> 		protected override void OnPaint(PaintEventArgs pea)
> 		{
> 			pea.Graphics.DrawLine(new System.Drawing.Pen(Color.Blue), 1, 1, i, i);
> 			Thread.Sleep(200);
> 			i++;
> 			Invalidate();
> 		}
> 	}
> }
> ------------------------------------------------------
> _______________________________________________
> 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>


More information about the Mono-winforms-list mailing list