[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Dotgnu-pnet-commits] pnetlib/samples FormsTest.cs,1.23,1.24
From: |
Rhys Weatherley <address@hidden> |
Subject: |
[Dotgnu-pnet-commits] pnetlib/samples FormsTest.cs,1.23,1.24 |
Date: |
Tue, 02 Dec 2003 11:17:28 +0000 |
Update of /cvsroot/dotgnu-pnet/pnetlib/samples
In directory subversions:/tmp/cvs-serv32445/samples
Modified Files:
FormsTest.cs
Log Message:
Hook up the "Help" button on the caption bar to an event that
displays a message box.
Index: FormsTest.cs
===================================================================
RCS file: /cvsroot/dotgnu-pnet/pnetlib/samples/FormsTest.cs,v
retrieving revision 1.23
retrieving revision 1.24
diff -C2 -d -r1.23 -r1.24
*** FormsTest.cs 2 Dec 2003 07:00:14 -0000 1.23
--- FormsTest.cs 2 Dec 2003 11:17:25 -0000 1.24
***************
*** 308,311 ****
--- 308,313 ----
ClientSize = new Size(500, 650);
Text = "System.Windows.Forms Tests";
+ HelpButton = true;
+ HelpRequested += new HelpEventHandler(ShowHelp);
SuspendLayout();
***************
*** 3497,3500 ****
--- 3499,3508 ----
Invalidate(true);
}
+
+ private void ShowHelp(object sender, HelpEventArgs e)
+ {
+ MessageBox.Show(this, "This is a help message.",
"Help");
+ }
+
}
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Dotgnu-pnet-commits] pnetlib/samples FormsTest.cs,1.23,1.24,
Rhys Weatherley <address@hidden> <=