0% found this document useful (0 votes)
2 views

Camsa_LabExer1

The document outlines a laboratory exercise for developing a stopwatch application using Visual Basic 6.0, focusing on event-driven programming and user interface design. The objectives included creating a functional application with accurate time tracking and debugging capabilities. The report concludes that the activity enhanced understanding of UI design, event handling, and improved coding skills.

Uploaded by

24100996-student
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2 views

Camsa_LabExer1

The document outlines a laboratory exercise for developing a stopwatch application using Visual Basic 6.0, focusing on event-driven programming and user interface design. The objectives included creating a functional application with accurate time tracking and debugging capabilities. The report concludes that the activity enhanced understanding of UI design, event handling, and improved coding skills.

Uploaded by

24100996-student
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 4

Name: PRINCESS FARIZZAH I.

CAMSA Date Performed: MARCH 20, 2025


Course/Year/Section: BSIT-1 Date Submitted: APRIL 9, 2025
Instructor: MRS. UNSI Group Number: 1

HUMAN-COMPUTER INTERACTION
Laboratory No. 1: Stopwatch Application
Objective:
 Develop a Visual Basic application that simulates a stopwatch.
 Implement event-driven programming by handling button clicks.
 Use system time functions to track elapsed time.
Materials Required:
 Visual Basic 6.0
 Windows-based computer
 Visual Basic Manual for reference
Procedures:
1. Create a New Project:
 Open Visual Basic 6.0 and start a new project.
2. Design the User Interface (UI):
 Add three Command Buttons: cmdStart, cmdEnd, cmdExit.
 Add six Labels to display text and results.
 Modify properties:
o cmdStart: Caption = “Start Timing”
o cmdEnd: Caption = “End Timing”
o cmdExit: Caption = “Exit”
o lblStart: Caption = “Start Time”
o lblEnd: Caption = “End Time”
o lblElapsed: Caption = “Elapsed Time”
3. Declare Variables:
 Open the Code Editor and declare three form-level variables:
4. Write Code for Buttons:
 Start Timing Button (cmdStart_Click)

 End Timing Button (cmdEnd_Click)

 Exit Button (cmdExit_Click)

5. Run and Debug the Application:


 Test if the application records time correctly.
 Ensure that the elapsed time is displayed accurately.
 Fix any syntax errors.
6. Enhancements:
 Improve UI by changing fonts and colors.
Deliverables:
✔ Source Code (.vbp, .frm files). Rename the ZIP file as “Lastname-LabExer1”. Submit in LMS.
✔ Laboratory Sheet with Short Report. Submit the PDF copy in LMS.
 Short Report (1–2 pages) including:
o Screenshots of the application in action (Start, End, and Elapsed Time displayed)
o Challenges faced and solutions
Assessment:
✔ Correct display of start and end time
✔ Accurate elapsed time calculation
✔ Proper UI layout and functionality
✔ Code readability and efficiency
Discussion and Conclusion: Write your answer on the space provided.
1. Discuss how the objectives were met after performing the activity?

The objectives of the activity were successfully met through the development of a functional
stopwatch application using Visual Basic 6.0. I was able to design a user-friendly interface with
three buttons and six labels, which clearly displayed the start time, end time, and elapsed time.
By using event-driven programming, I handled button clicks to capture the system time and
calculate the time difference. I also implemented variables to store time values and displayed
them properly on the form. Furthermore, I tested the application to ensure it worked correctly
and debugged any errors encountered during the process. This activity helped me understand
the basics of UI design, time functions, and event handling in VB6.

2. What is your conclusion based on the activity?

This activity provided a practical introduction to building interactive applications using Visual
Basic 6.0. It helped me understand how event-driven programming works and how to
manipulate system time for basic functionality. By completing the stopwatch app, I learned the
importance of good UI design and accurate time tracking in software development. The task
also improved my debugging skills and gave me confidence in writing and testing code.
Overall, the activity successfully demonstrated how a simple concept like a stopwatch can be
built using fundamental programming principles.

Mrs. Princess Jenan Unsi


INSTRUCTOR
April 9, 2025
DATE
Short Report

You might also like