Simple Hello world form sample
- Contents
- Compiling
- Running
- Under the Hood
- Notes
Compiling
To compile the example:
- Launch EiffelStudio.
- Click Add project
- Browse to $ISE_EIFFEL\examples\dotnet\winforms\hello_world\
- Choose hello_world.ecf
- Choose the location where the project will be compiled, by default the same directory containing the configuration file.
- Click Open.
Running
After launching the application, you will see a window displayed with a similar appearance to the one above. This is the simplest windows form we can display. We have just set the title with "HelloWorld".
Under the Hood
The application shows how to display a Windows Form under the windows environment. The application inherits the "Hello world"
with the inherited feature set_text ("Hello world")
The application is launched in a {WINFORMS_APPLICATION}.run_form (Current).
This sample uses the following classes:
-
FORM -
WINFORMS_APPLICATION
Notes
This sample is translated from the example located in the QuickStart\winforms\samples\simple hello world subdirectory of the.NET Framework SDK samples directory of Microsoft Visual Studio.NET.