Views
1 year ago

BIS 311 DeVry All Week iLab

Create form, rename it,

Create form, rename it, and set its 7 14% text property Add label and text box for first name, setting name, and text 7 14% properties for each Add label and text box for last name, setting name, and text 7 14% properties for each 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). The label text property is set to First name:. Text box is named txtFirstName and has text property set to nothing. 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 7 14% name and text properties Code button-click event 7 14% Program tested and runs as 8 16% required The command button is named btnDisplay and has text property set to Display Name. 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. 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.vb and 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 to txtFirstName. 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 to txtLastName 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 to lblFullName 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 btnDisplay and 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