Create a calculator application, Visual Basic Programming

Create a VB calculator application that appears as in the screen shots below.


1349_calculator 1.png

The user enters numbers in the textboxes labelled Number 1 and Number 2. When a calculation button (Add, minus etc.) is pressed, the result for the appropriate calculation appears in the textbox labelled Answer and the appropriate operation symbol (+, - etc.) appears between the number textboxes.
Whenever the user starts to enter a new number (Number 1 or 2), the operation symbol +, -, etc. is to disappear and the Answer and operation symbol are to be blanked out to prevent the display of incorrect results, as shown below:

Whenever the user clicks or tabs to the textboxes labelled Number 1 and Number 2, the field is to be blocked so that a completely new number can be entered.
The Answer textbox is to be locked to prevent manual editing of any displayed results. Also code is required to provide appropriate error checks for the entry of non-numeric (including blank) Number 1 and Number 2 fields, and to prevent a divide by zero error (for both Divide and Modulo). Any detected errors should be accompanied by an appropriate error message with focus being given to the textbox containing the erroneous value to facilitate correction.
Meaningful variable/control names and appropriate comments should be provided.

552_calculator 2.png

Posted Date: 2/18/2013 5:38:05 AM | Location : United States

Related Discussions:- Create a calculator application, Assignment Help, Ask Question on Create a calculator application, Get Answer, Expert's Help, Create a calculator application Discussions

Write discussion on Create a calculator application
Your posts are moderated
Related Questions
DIALOG   The dialog is a window which contains controls. The Dialog boxes are the form of input and output. The control can be placed on the dialog box for communicating. If y

Use of WM_SIZE Message: Whenever the WM_SIZE message is handled and the graphical objects on the output window will also change consequently to the output window. The functi

USE OF SERIALIZE FUNCTION IN DOCUMENT CLASS TO IMPLEMENT FILE void CStoreDoc::Serialize(CArchive& ar) { if (ar.IsStoring()) { // TODO: add storing code here }

steps of connecting database from vb6.0

#questiontypes of lines and how to draw

I''m doing a project on vb.NET. I''m stuck with this place where I should replace the text to different characters from textbox1 to textbox2 without changing text in textbox1. For

You can employ For...Next statements to run a block of statements a specific number of times. For loops, employ a counter variable whose value is increased or decreased with each r

Option Explicit Declaration: If the option explicit is used essentially then all the variables will have to be declared. Or else an error will be reported saying that the vari

Use the While keyword to verify a condition in a Do...Loop statement. You can verify the condition before you enter the loop (as illustrated in the following ChkFirstWhile instance

Sets or returns wholly qualified path to a Help File. If Help file is indicated in HelpFile, it is called automatically when the user clicks Help button (or presses the F1 key) in