Preview

Lab1

Satisfactory Essays
Open Document
Open Document
439 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
Lab1
DPA5018

Programming for Business Applications

Lab 1

LAB 1
Exercise 1

Figure 1a
1. Create the interface as shown in Figure 1a.
2. Set the properties of the form based on Table 1a. frmQ1 Name
My First VB Program
Text
BackColor White
Table 1a
3. Add a label to the form.
4. Set the properties of the label based on Table 1b: lblMsg I Like Visual Basic!
Font: Verdana
Font Style: Bold
Size: 16
ForeColor Red
Table 1b
Name
Text
Font

5. Add an image to the form using a picture box (Image property). Resize and position the image and the picture box properly.
6. Select File > Save All to save the project.
7. Select Debug > Start Debugging or press F5 to execute the program.
Discussion:
a. Describe control and property.
b. Differentiate between Name and Text properties.

TSW

1/4

DPA5018

Programming for Business Applications

Lab 1

Exercise 2
Modify the program in Exercise 1 based on the following instructions:
1. Add a button to the form. Set the properties of the button based on Table 2a.
Name
Text

btnChange
Change Color
Table 2a

2. When btnChange is clicked, the font color of lblMsg will be changed to Blue.
Double-click on btnChange and write the following code.

3. Write the code to change the background color of the form to Green when btnChange is clicked.
4. Add another button to the form. Set the properties of the button based on Table
2b.
btnMsg
Name
Change Message
Text
Table 2b
5. Write the code to change the display text of lblMsg to “Program completed!” when btnMsg is clicked.

TSW

2/4

DPA5018

Programming for Business Applications

Lab 1

Exercise 3

lblName

txtName

lblTarget

txtTarget btnClick lblOutput

Figure 3a

1. Create the interface and set each control’s properties as shown in Figure 3a.
2. Referring to the sample output in Figure 3b and 3c, write the code to perform the following tasks when button btnClick is clicked:
a. Display the output

You May Also Find These Documents Helpful

  • Satisfactory Essays

    Part 1 1. Write a script which will Create the needed tables as follows: a. Table name : DEPT i. Column datatype Mandatory? PK? FK?…

    • 1169 Words
    • 5 Pages
    Satisfactory Essays
  • Better Essays

    2. Create a Windows application that contains a button labeled OK and a textbox labeled Name. Change the…

    • 1713 Words
    • 7 Pages
    Better Essays
  • Satisfactory Essays

    CTS 2437 Final Exam

    • 630 Words
    • 4 Pages

    4. Create a table called Customers that contains a person’s first name, last name, and social security number. Your table definition should…

    • 630 Words
    • 4 Pages
    Satisfactory Essays
  • Better Essays

    Lab 2

    • 931 Words
    • 4 Pages

    A hazard of working with hydrochloric acid is that it could burn the skin if too much comes in contact with skin (Sciencelab1). If this happens rinse skin thoroughly under running water and alert the lab professor.…

    • 931 Words
    • 4 Pages
    Better Essays
  • Powerful Essays

    lab 1

    • 636 Words
    • 3 Pages

    Are there any safety concerns associated with this exercise? If so, list what they are and what precautions should be taken.…

    • 636 Words
    • 3 Pages
    Powerful Essays
  • Satisfactory Essays

    Lab 3

    • 257 Words
    • 1 Page

    7. What is the IP address of the DHCP server from which W2K8yy has obtained its IP address?…

    • 257 Words
    • 1 Page
    Satisfactory Essays
  • Satisfactory Essays

    Lab 3

    • 789 Words
    • 4 Pages

    To predict caloric expenditure you can plug in a measured heart rate and calculate the predicted VO2 (L/min). Then using the predicted VO2 and an estimated thermal equivalent (4.825 kcal/LO2), you can estimate the caloric expenditure. Nonetheless, each individual’s heart rate varies. These can be attributed to gender differences, physical activity and physical training. So, if the person is of the same gender and is as healthy as you are and does the same amount of exercise then it could be possible to use their regression line to estimate your own caloric expenditure however the limitations would be possibly the difference in size of the lungs for the estimation of VO2 max. Weight would be important, as it is required to calculate the predicted caloric expenditure. However if your weight can be misleading because one can simply weigh more because they are taller, not because they are bigger. Height does not play such an important role. When you are taller, your body does need to pump more blood throughout the body. This means that they will pump more blood per beat but not that they would have a higher heart rate. It is important to remember that a linear relationship exists between…

    • 789 Words
    • 4 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Comp230 W2 Ilab

    • 1120 Words
    • 5 Pages

    Student Name | | Class | Comp230 | Date | 5/16/2013 | VBScript IPO VBox Lab Report ' VBScript: NameAge.vbs ' Written by: ' Date: 5/16/2013 ' Class: Comp230 ' Professor: Giao Dau ' = == == == ==…

    • 1120 Words
    • 5 Pages
    Satisfactory Essays
  • Satisfactory Essays

    A retail store gives each of its customers a maximum amount of credit. A customer’s available credit is determined by subtracting the amount of credit used by the customer from the customer’s maximum amount of credit. As you did in programming challenge 1, perform steps 1 through 6 of the programming process to design an application that determines a customer’s available credit.…

    • 636 Words
    • 3 Pages
    Satisfactory Essays
  • Good Essays

    Lab 2

    • 639 Words
    • 2 Pages

    with varying amounts of data. In order for scanners to detect this type of virus,…

    • 639 Words
    • 2 Pages
    Good Essays
  • Satisfactory Essays

    lab 2

    • 398 Words
    • 2 Pages

    1. Compare the hash values calculated for example.txt that you documented during this lab. Explain in your own words why the hash values will change when the data is modified.…

    • 398 Words
    • 2 Pages
    Satisfactory Essays
  • Good Essays

    Lab2

    • 520 Words
    • 3 Pages

    On your own and without assistance, complete this Lab 2 Answer Form electronically and submit it via the Assignments Folder by the date listed on your Course Schedule (under Syllabus).…

    • 520 Words
    • 3 Pages
    Good Essays
  • Powerful Essays

    b) 10 Convert the one table in the previous question to a relational database design. Fill each table in your…

    • 1445 Words
    • 6 Pages
    Powerful Essays
  • Satisfactory Essays

    Lab 1

    • 414 Words
    • 2 Pages

    4. Why would you use a tool like DevManView while performing a computer forensic investigation?…

    • 414 Words
    • 2 Pages
    Satisfactory Essays
  • Good Essays

    Eidul Zoha

    • 1427 Words
    • 6 Pages

    A form simply allows you to work visually with the data in the database. It is a representation of the data in the database tables, a collection of objects that yields a graphic interface to the data.…

    • 1427 Words
    • 6 Pages
    Good Essays