Describe inventory application with keyboard events

Assignment Help Database Management System
Reference no: EM13933268

(Inventory Application with Keyboard Events) Enhance the Inventory application that you developed in Tutorial 4 to prevent the

user from entering input that is not a number. Use keyboard events to allow the user to press the number keys, the left and

right arrows and the Backspace keys. If any other key is pressed, display a MessageBox instructing the user to enter a number

(Fig. 21.34).

533_uu.png

a) Copying the template to your working directory. Copy the directory C: \Exampl es\Tutori al 21\Exerci ses\KeyEventInventory

to your C: \Si mpl yVB2008 directory.

b) Opening the application's template file. Double click KeyEventInventory. sl n in

the KeyEventInventory directory to open the application.

c) Adding the KeyDown event handler for the first TextBox. Use the Class Name and Method Name ComboBoxes to add an

empty KeyDown event handler for the Cartonsper shipment: TextBox.

d) Adding a Select Case statement. Add a Sel ect Case statement to the KeyDown

event handler that uses the Keys enumeration to determine whether a number key, aleft or right arrow, Enter or the Backspace

key was pressed.

e) Adding the Case Else statement. Add a Case El se statement that executes when a key other than a valid one for this

application was pressed. If an invalid key was pressed, clear the TextBox and display a MessageBox that instructs the user to

enter a number.

f) Adding the KeyDown event handler for the second TextBox. Repeat Steps c-e, but this time create a KeyDown event handler

for the Items per carton: TextBox. This event handler should have the same functionality as the one for the Cartons per

shipment: TextBox.

g) Running the application. Select Debug > Start Debugging to run your application.

Try entering letters or pressing the up- and down-arrow keys in the TextBoxes. A

MessageBox should be displayed. Enter valid input and click the Calculate Total

Button. Verify that the correct output is displayed.

h) Closing the application. Close your running application by clicking its close box.

i) Closing the IDE. Close the Visual Basic IDE by clicking its close box.

Attachment:- Tutorial21.zip

Reference no: EM13933268

Questions Cloud

Give some examples of assets other than cash : Give some examples of assets other than cash that are commonly contributed to a business in exchange for stock.
Essay on aboriginal people and government : Do the reading from the following list of readings and write an essay on Aboriginal People and Government in the 20th century and about the segregation, assimilation and resistance.
Describe basic pre-test, post-test experimental design : Briefly describe the basic pre-test, the post-test experimental design, and the Solomon Four-Group design. Do feel that the Solomon Four-Group design. is better than the pre-test and the post-test designs?
Determine maximum height of the knob : Determine the maximum height h which the knob may have without causing the unit to be unstable in the upright position shown. Both parts are made from the same material.
Describe inventory application with keyboard events : (Inventory Application with Keyboard Events) Enhance the Inventory application that you developed in Tutorial 4 to prevent the user from entering input that is not a number. Use keyboard events to allow the user to press the number keys, the left and..
Application of gadamer philosophical hermeneutics : Write articles on the following topics: Teacher action research as Bildung: An application of Gadamer's philosophical hermeneutics to teacher professional development and The Curriculum:what are the basics and are we teaching them.
Theme of resurrection : 1- " Women were given bad press by the Old Testament Writers/Editors" Do you agree? 2- The theme of Resurrection was a strange religious concept to the Old Testament Believer. Discuss
How does health information technology impact patient care : Identify an area for improvement within a healthcare organization that can be addressed with health information technology. Topic of choice is: How does health information technology impact the quality of patient care
Proposition with reference to at least three films : "Hollywood" cinema is wrought by a tension within the system, that between commerce and art. As such, the "genius of the system" (to use Schatz's phrase) is a confluence of ideological and aesthetic modes of representation. Discuss this propositio..

Reviews

Write a Review

Database Management System Questions & Answers

  Knowledge and data warehousing

Design a dimensional model for analysing Purchases for Adventure Works Cycles and implement it as cubes using SQL Server Analysis Services. The AdventureWorks OLTP sample database is the data source for you BI analysis.

  Design a database schema

Design a Database schema

  Entity-relationship diagram

Create an entity-relationship diagram and design accompanying table layout using sound relational modeling practices and concepts.

  Implement a database of courses and students for a school

Implement a database of courses and students for a school.

  Prepare the e-r diagram for the movie database

Energy in the home, personal energy use and home energy efficiency and Efficient use of ‘waste' heat and renewable heat sources

  Design relation schemas for the entire database

Design relation schemas for the entire database.

  Prepare the relational schema for database

Prepare the relational schema for database

  Data modeling and normalization

Data Modeling and Normalization

  Use cases perform a requirements analysis for the case study

Use Cases Perform a requirements analysis for the Case Study

  Knowledge and data warehousing

Knowledge and Data Warehousing

  Stack and queue data structure

Identify and explain the differences between a stack and a queue data structure

  Practice on topic of normalization

Practice on topic of Normalization

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd