I'm trying to follow the examples in Charles Petzold's "Programming
Windows with C#", but this code doesn't show any windows on my system.
Anyone have any ideas why I don't see anything?

//-----------------------------------------------
// ShowFormAndSleep.cs ^� 2001 by Charles Petzold
//-----------------------------------------------
using System.Threading;
using System.Windows.Forms;

class ShowFormAndSleep
{
        public static void Main()
        {
                Form form = new Form();

                form.Show();

                Thread.Sleep(2500);

                form.Text = "My First Form";

                Thread.Sleep(2500);
        }
}

I'm running Mono 1.1.7, the latest S.W.F.dll as of about 2:30 PM EST
today, and libgdiplus 1.1.7.

Best Regards,
Christopher Nehren
-- 
I abhor a system designed for the "user", if that word is a coded
pejorative meaning "stupid and unsophisticated". -- Ken Thompson
If you ask the wrong people questions, you get "Joel on Software".
Unix is user friendly. However, it isn't idiot friendly.

_______________________________________________
Mono-winforms-list maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-winforms-list

Reply via email to