Please do not reply to this email- if you want to comment on the bug, go to the URL shown below and enter your comments there.
Changed by [EMAIL PROTECTED] http://bugzilla.ximian.com/show_bug.cgi?id=82569 --- shadow/82569 2007-08-24 08:34:00.000000000 -0400 +++ shadow/82569.tmp.17277 2007-08-24 08:34:00.000000000 -0400 @@ -0,0 +1,70 @@ +Bug#: 82569 +Product: Mono: Class Libraries +Version: 1.2 +OS: Windows XP +OS Details: +Status: NEW +Resolution: +Severity: +Priority: Wishlist +Component: Windows.Forms +AssignedTo: [EMAIL PROTECTED] +ReportedBy: [EMAIL PROTECTED] +QAContact: [EMAIL PROTECTED] +TargetMilestone: --- +URL: +Cc: +Summary: [Win32] Oppacity problem under Windows + +On Mono/Windows, the form is first fully displayed (in Load, Opacity +is 1), then hidden again and then is gradually displayed (as it +should). + +Run this code: + +using System; +using System.Windows.Forms; + +public class MainForm : Form +{ + public MainForm () + { + // + // _timer + // + _timer = new Timer (); + _timer.Enabled = true; + _timer.Interval = 25; + _timer.Tick += new EventHandler (Timer_Tick); + // + // MainForm + // + Load += new EventHandler (MainForm_Load); + Opacity = 0; + } + + [STAThread] + static void Main () + { + Application.Run (new MainForm ()); + } + + void MainForm_Load (object sender, EventArgs e) + { + lock (this) { + if (Opacity != 0) + Environment.Exit (1); + } + } + + void Timer_Tick (object sender, EventArgs e) + { + lock (this) { + Opacity += 0.03; + if (Opacity == 1) + Environment.Exit (0); + } + } + + private Timer _timer; +} _______________________________________________ mono-bugs maillist - [email protected] http://lists.ximian.com/mailman/listinfo/mono-bugs
