/[eiffelstudio]/trunk/Delivery/newdocs/technologies/dotnet/samples/winform/simple_hello_world.html
ViewVC logotype

Contents of /trunk/Delivery/newdocs/technologies/dotnet/samples/winform/simple_hello_world.html

Parent Directory Parent Directory | Revision Log Revision Log


Revision 34424 - (show annotations)
Tue Sep 10 17:00:07 2002 UTC (17 years, 5 months ago) by julieng
File MIME type: text/html
File size: 2298 byte(s)
Add some comments in the under the hood section.

1 <script src="../instal.js"></script>
2
3 <html>
4
5 <head>
6 <meta name="GENERATOR" content="Microsoft FrontPage 5.0">
7 <meta name="ProgId" content="FrontPage.Editor.Document">
8 <meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
9 <title>Simple Hello world form sample</title>
10 <LINK REL=StyleSheet HREF="/default.css">
11 </head>
12
13 <body>
14
15 <h1>Simple hello world sample</h1>
16 <center>
17 <p>
18 <img alt="Hello world form" src="/images/dotnet_samples/simple_hello_world.png" width="300" height="300"></p>
19 </center>
20 <p><br>
21 <br>
22 &nbsp;</p>
23 <h2>Compiling</h2>
24 <script language="JavaScript">
25 <!--
26 var path_to_ace_file = Eiffel_version + "\\examples\\dotnet\\winforms\\simple_hello_world\\";
27 var ace_file_name = "Ace";
28 var path_eifp_file = "..\\..\\samples\\winforms\\hello_world_window\\"
29 var eifp_name = "hello_world_window.eifp";
30
31 if (eiffel_studio) {
32 write_eiffel_studio_compiling_instruction (path_to_ace_file, ace_file_name)
33 }
34 else {
35 write_envision_compiling_instruction (path_eifp_file, eifp_name)
36 }
37 -->
38 </script>
39 <noscript>
40 <p>To see compiling instructions, you have to enable javascript.</p></noscript>
41
42 <h2>Running</h2>
43 <p>After launching the application, you will see a window displayed with a
44 similar appearance to the one above. This is the simplest windows form we can
45 display. We have just set the title with &quot;Hello World&quot;.</p>
46 <p>&nbsp;</p>
47 <h2>Under the Hood</h2>
48 <p>The application shows how to display a Windows Form under the windows environment.
49 The application inherits the
50 <span class="eClass">FORM</span> class, and just set the title with <span class="eString">&quot;Hello world&quot;</span> with the inherited feature <span class="eFeature">set_title</span>.</p>
51 <pre>set_title ((&quot;Hello world&quot;).to_cil)</pre>
52 <p>The application is launch in a PROCESS with this command line:</p>
53 <pre>feature {WINFORMS_APPLICATION}.run_form (Current).</pre>
54 <p>This sample contains the following class: </p>
55 <ul>
56 <li>
57 <span class="eClass">
58 FORM</span></li>
59 <li>
60 WINFORMS_APPLICATION</li>
61 </ul>
62
63 <h2>Notes</h2>
64 <p>This sample is translated from the example located in the QuickStart\winforms\samples\simplehelloworld
65 subdirectory of the .NET Framework SDK samples directory of Microsoft Visual Studio .NET.</p>
66
67 <p>&nbsp;</p>
68
69 <p>&nbsp;</p>
70
71 </body>
72
73 </html>

Properties

Name Value
svn:eol-style native
svn:keywords Author Date Id Revision

  ViewVC Help
Powered by ViewVC 1.1.23