Lab Session: Hello World: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
|||
Line 6: | Line 6: | ||
# Add a TextArea and a Button to Form1. | # Add a TextArea and a Button to Form1. | ||
# Paste the following text into the ''value'' property of the TextArea: <pre>Here is a simple Hello World app. Hit F5 in AppStudio to run it in your local browser.</pre> | # Paste the following text into the ''value'' property of the TextArea: <pre>Here is a simple Hello World app. Hit F5 in AppStudio to run it in your local browser.</pre> | ||
# Select | # Select ''Button1_onclick()'' from the ''click'' pulldown of Button1. | ||
# Paste the following code into the function in the code window: <pre>NSB.MsgBox "Thanks for clicking!"</pre> | # Paste the following code into the function in the code window: <pre>NSB.MsgBox "Thanks for clicking!"</pre> | ||
# Press F5 to run the program. | # Press F5 to run the program. |
Revision as of 08:25, 11 December 2013
In this lab you will create a simple "Hello, world" style app.
Instructor Outline
- Start a new project.
- Add a TextArea and a Button to Form1.
- Paste the following text into the value property of the TextArea:
Here is a simple Hello World app. Hit F5 in AppStudio to run it in your local browser.
- Select Button1_onclick() from the click pulldown of Button1.
- Paste the following code into the function in the code window:
NSB.MsgBox "Thanks for clicking!"
- Press F5 to run the program.