Lab Session: Device features: Difference between revisions

From NSB App Studio
Jump to navigation Jump to search
No edit summary
No edit summary
Line 4: Line 4:


# Open LabFeatures.nsx
# Open LabFeatures.nsx
# Put your application in portrait mode, and verify that it displays an error when rotated to landscape.
# Put your application in portrait mode and verify that it displays an error when rotated to landscape.
# Add code to ''frmPhoto'' that allows the user to take a photo and display it.  You'll have to add the appropriate TextBox and PictureBox.
# Add code to ''frmPhoto'' that allows the user to take a photo and display it.  You'll have to add the appropriate TextBox and PictureBox.
# Replace the default values of ''selEmoji'' with a few Emoji characters so the user can select how they feel about the photo.  Emoticons work best.
# Replace the default values of ''selEmoji'' with a few Emoji characters so the user can select how they feel about the photo.  Emoticons work best.
# Modify the click event for ''btnLoad'' on ''frmMain'' so the TextBox, PictureBox and ''selEmoji'' are reset on click.
# Modify the click event for ''btnLoad'' on ''frmMain'' so the TextBox, PictureBox and ''selEmoji'' are reset on click.

Revision as of 22:39, 13 December 2013

In this lab session, you will add features to your app that allow you to take a picture, record your feelings on the weather with emoji, and respond to device rotation.

Student Outline

  1. Open LabFeatures.nsx
  2. Put your application in portrait mode and verify that it displays an error when rotated to landscape.
  3. Add code to frmPhoto that allows the user to take a photo and display it. You'll have to add the appropriate TextBox and PictureBox.
  4. Replace the default values of selEmoji with a few Emoji characters so the user can select how they feel about the photo. Emoticons work best.
  5. Modify the click event for btnLoad on frmMain so the TextBox, PictureBox and selEmoji are reset on click.