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

  What is server side and client side scripting

In this course we have learned about websites that use databases, what is a database, and used databases in building programs in Python. What is Server Side and Client Side scripting? Explain the differences between server-side and client - side sc..

  Advantages and disadvantages on all the methods

What are the advantages and disadvantages on all the methods available for creating a databaseg a database manually other than it's more complex than using the DBCA tool. Looking through

  What other kinds of databases exist?

Why have relational databases replaced the other types of databases?

  Relational databases are more efficient and effective

Describe why relational databases are more efficient AND effective for data management in organizations. How does the task of data normalization help to achieve these goals?

  Examine hard-to-obtain data from two separate databases

You are interested in examining some hard-to-obtain data from two separate databases. Each database comprises numerical values - so there are 2n values total

  Define why is programming efficiency important

Taking into account the availability of today's powerful computers, why is programming efficiency important

  Timetabling system - write an sql function

With the new UNSW timetabling system, the LIC of each course is required to specify what facilities they require in their classrooms as one of the inputs to the timetabling process. Write an SQL function to provide a list of rooms that contain a g..

  Relational algebragiven the following set of relations from

relational algebragiven the following set of relations from the east coast aquarium database list the sequence of

  Database containing student info

Create a database containing student info (name, age, ect.).Find a way to allow the user to search the database using a students name and allowing them to delete that students information.Use binary input/output to take the input from the user for th..

  Construct a use-case diagram

Construct (i) a use-case diagram (ii) a class diagram (iii) System Sequence Diagram (iv) detailed Sequence Diagram or diagrams as appropriate and (v) a state chart for a car object/class according this scenario. Include appropriate properties for ..

  Prepare a program so that it connects to a mysql database -

task 1you must setup your program so that it connects to a mysql database named gradingdb running on localhost. the

  Organize and implement rdbms for ercan airport management

design, organize and implement a RDBMS for Ercan Airport Management that will store, manipulate and retrieve all airport related information. The database you will design will organize the information about all the airplanes stationed and maintain..

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