You are here:

Visual Basic/Visual Basic Homework Help

Advertisement


Question
Online Store Specials
Online Store Specials  
Would you mind helping me with this Case Programming Assignments?

Direction: Create a Use Case Definition document and design a Windows form mock-up based on the requirements document in Figure 2-83.

I attached the image below

Answer
Dear DJ,

I'm not sure what is a Use Case Definition document - can you get a sample from any other project?

There are several ways to create mock-up form, so I'll give you a design idea that looks simplest - of course, from my point of view.

Create new Windows project, place GroupBox control on the form, and put 3 checkBoxes on this GroupBox control. Each checkBox is corresponding special.

Add to the form: Picturebox (to display picture), Label (to display all the text - cell phone, reg. price, special price), and Button (to add to a Cart and close the form).
When form is opened, not one of the checkBoxes is selected, Picturebox, Label and Button are invisible.

If user selects any checkBox  Picturebox, Label and Button become visible, and their Image and text properties should change accordingly. If user selects another checkBox, picture and text should change accordingly AND all other checkboxes moved to unchecked state. If all checkBoxes are unchecked Picturebox, Label and Button are invisible again. You can right one function to accomplish this logic and call it from each checkBox CheckedChanged event. And when user clicks Button you can just close the form.

Regards,

Vitaly

Visual Basic

All Answers


Answers by Expert:


Ask Experts

Volunteer


VITALY

Expertise

Area of expertise is Visual Basic .NET (VS 2008 and Framework 3.5) design and development for Windows applications. You can ask me any Visual Basic questions and some questions about .NET Framework. You can also ask me how to use Component One controls in Visual Basic. Do not ask me questions about Web design and development in Visual Basic.

Experience

I'm working as VB programmer from 1997, so I have a lot of experience with Visual Basic .NET as well as Visual Basic 6. Area of expertise is Visual Basic .NET (VS 2008 and Framework 3.5) design and development for Windows applications; Component One controls for Visual Basic; User controls; Moving VB6 applications to .NET.

Education/Credentials
B.S. in Computer Science

©2016 About.com. All rights reserved.