Description
DeVry BIS 311 Week 1 iLab Latest
iLAB OVERVIEW
Scenario/Summary
In this iLab, you will create a Visual Basic application that meets the following business requirements.
Name Combiner Business Requirements
The application will allow the user to input a person’s first name and last name. When the user clicks the Display Name button, the application will combine the first name, a space, and the last name into the person’s full name, and then display the full name to the user.
The tasks, objects, events (TOE) chart for this application will be as follows.
Task | Object | Event |
Get the following inputs from the user: | ||
First name | txtFirstName | |
Last name | txtLastName | |
Perform the following processing: | ||
Form full name by combining first name, a space, and last name | btnDisplay | Click |
Display the following output to the user: | ||
Full name | lblFullName |
Deliverables
Submit a single Word document named Lab1YourFirstLastName.docx (where YourFirstLastName = your first and last name; e.g., JohnSmith) containing the following.
- Screenshot of Windows form showing successful operation of the application
- Copy of the application’s button-click event code
Category | Points | % | Description |
Create form, rename it, and set its text property | 7 | 14% | The form is named NameCombiner.vb and has text property set to Lab1 – Your Name where Your Name = your full name (e.g., John Smith). |
Add label and text box for first name, setting name, and text properties for each | 7 | 14% | The label text property is set to First name:. Text box is named txtFirstName and has text property set to nothing. |
Add label and text box for last name, setting name, and text properties for each | 7 | 14% | The label text property is set to Last name:. The text box is named txtLastName and has text property set to nothing. |
Add labels for full name, setting name, and text properties for each | 7 | 14% | The first label text property is set to Full name:. The second label is named lblFullName and has text property set to ———-. |
Add command button and set its name and text properties | 7 | 14% | The command button is named btnDisplay and has text property set to Display Name. |
Code button-click event | 7 | 14% | The code in the button-click event declares two String variables for first, last, and full names; gets the values entered in the text boxes by the user into the corresponding variables; concatenates the first name, a space, and the last name, storing the result in the full name variable; and displays the full name in the appropriate label. |
Program tested and runs as required | 8 | 16% | A screenshot displays the form after the user has entered a first name and a last name and clicked the Display Name button. The corresponding first name, space, and last name are displayed in the output label. |
Total | 50 | 100% |
Required Software
Visual Studio 2012
Access the software at.devry.edu/”>https://lab.devry.edu.
Steps: all
iLAB STEPS
STEP 1: Launch and Configure Microsoft Visual Studio 2012
.equella.ecollege.com/file/8fe38950-b7ec-4492-8803-a1c7312a7eb1/67/BIS311_W1_iLab.html#top”>Back to Top
(a) On the Citrix iLab main screen, if the Visual Studio 2012 icon is not already displayed, click the plus sign ( ) on the left side of the screen. Next, click on All Apps and scroll down to find Microsoft Visual Studio 2012. Click on it to add it to your Citrix iLab menu screen.
(b) On the Citrix iLab main menu screen, click the Microsoft Visual Studio 2012 icon to launch the applicatio
STEP 2: Create the Project
.equella.ecollege.com/file/8fe38950-b7ec-4492-8803-a1c7312a7eb1/67/BIS311_W1_iLab.html#top”>Back to Top
(a) Pull down the File menu and select New Project.
(b) In the New Project dialog box, ensure that the Visual Basic and Windows Form Application choices are selected. Change the name in the Name box at the bottom of the dialog box to NameCombiner. Click OK.
(c) A blank form for your application should now be displayed as shown below. STEP 3: Set Up Main Form
.equella.ecollege.com/file/8fe38950-b7ec-4492-8803-a1c7312a7eb1/67/BIS311_W1_iLab.html#top”>Back to Top
(a) Under Solution Explorer on the right side, right-click on Form1.vb and select Rename. Change the name to NameCombiner.vband press Enter. The result should look like the following.
(b) If the Properties window is not already displayed below the Solution Explorer window at the bottom right of the screen, click the Wrench icon on the Solution Explorer toolbar to display it.
(c) Click the blank form in the NameCombiner.vb [Design] tab on the left side of the screen to select it. The form’s properties should now be displayed in the Properties window at the bottom right. Scroll through the list to find the Text property row. Change the property for the text from Form1 to Lab1 – Your Name where Your Name = your first and last names (e.g., John Smith).
STEP 4: Add Form Controls
.equella.ecollege.com/file/8fe38950-b7ec-4492-8803-a1c7312a7eb1/67/BIS311_W1_iLab.html#top”>Back to Top
(a) If the Toolbox pane is not opened on the left side of the screen, click the Toolbox tab at the center left edge of the screen to open it. Click the Pushpin symbol at the right side of the Toolbox title bar to pin the Toolbox in the open position.
(b) Click the Common Controls heading in the Toolbox to expand it. Under Common Controls, select the Label control and drag it onto the form, positioning it in the upper left area. In the Properties window, select the Text property of the label and change it to First name:. Press Enter and you should see the new text appear in the label.
(c) Drag a TextBox control from the Common Controls area of the Toolbox and position it directly underneath the First name: label.Note: You may have to scroll down in the list of controls to find the TextBox control. Next, in the Properties window, change the (Name) property totxtFirstName. Ensure that the Text property is empty (blank).
(d) Drag another Label control from the Toolbox and position it in the upper right area of the form. Change its Text property to Last name:.
(e) Drag another TextBox control from the Toolbox and position it directly underneath the Last name: label. Change its (Name) property totxtLastName and ensure that its Text property is empty (blank).
(f) Drag another Label control from the Toolbox and position it in the center of the form below the text boxes. Change its Text property to Full name:.
(g) Drag another Label control from the Toolbox and position it directly underneath the Full name: label. Change its (Name) property tolblFullName and its Text property to ———- (10 dashes).
(h) Drag a Button control from the Toolbox and position it in the center of the form near the bottom. Change its (Name) property to btnDisplayand its Text property to Display Name. If necessary, click and drag the sizing handles (small circles) at the edges of the button to make it larger so that the complete text can be seen in the button.
(i) Verify that your form looks similar to the following, and make any necessary adjustments to the positions and properties of the controls.
STEP 5: Code Button-Click Event
.equella.ecollege.com/file/8fe38950-b7ec-4492-8803-a1c7312a7eb1/67/BIS311_W1_iLab.html#top”>Back to Top
(a) Double-click the Display Name button on the form. This will open the code editor with a stub or template for the button-click event handler procedure already generated for you by Visual Studio.
(b) Starting where the cursor is positioned, in between the line beginning Private Sub btnDisplay_Click( . . . and the line End Sub, enter the following code.
Code for Button-Click Event
‘Display full name
Dim strFirstName As String
Dim strLastName As String
Dim strFullName As String
strFirstName = txtFirstName.Text
strLastName = txtLastName.Text
strFullName = strFirstName ” ” strLastName
lblFullName.Text = strFullName
After you have entered your code, the code editor window should look as follows.
(c) Pull down the File menu and select Save All to save your changes to the project. If a Save Project dialog appears, ensure that the project is being saved to the My DocumentsVisual Studio 2012Projects folder under your DSI number. Click Save.
TEP 6: Test, Debug, and Submit
.equella.ecollege.com/file/8fe38950-b7ec-4492-8803-a1c7312a7eb1/67/BIS311_W1_iLab.html#top”>Back to Top
(a) Run the application by doing one of the following: click the Start button (green, right-pointing, triangle icon) on the toolbar; pull down the Debug menu and select Start Debugging; or press the F5 key.
(b) Your form should appear. Enter your first name in the First name text box and your last name in the Last name text box. Then click the Display Name button. Your first and last name should appear under Full name with a space between them, as shown below.
- c) If you received an error message or your application did not work correctly, don’t despair; debugging is a natural part of the programming process.Review your code and the naming of your controls carefully, and find and correct the errors.Then try running the application again. If you get stuck, you can post in the Q & A Forum or contact your professor for assistance.
(d) When your application runs and works correctly, capture a screenshot of the form with your first and last name entries and correct full name displayed. Note: To capture a screenshot of the current window, press the Ctrl, Alt, and PrintScreen keys simultaneously; this will copy an image of the current window into your copy-and-paste buffer. Next, open a Word document and paste your image into the document. Close the application form by clicking the X in the upper right corner. Now select and copy your Visual Basic code for the button-click event in the code editor, and paste this into the Word document as well. Save the Word document as Lab1YourFirstLastName.docx (where YourFirstLastName = your first and last name, e.g., JohnSmith) and submit it to the appropriate Dropbox.
DeVry Courses helps in providing the best essay writing service. If you need 100% original papers for DeVry BIS 311 Week 1 iLab Latest, then contact us through call or live chat.
DeVry BIS 311 Week 1 iLab Latest