1. You will need to validate the current length of the number in the
button click event. I'm assuming you have a single handler for all
keypad buttons.
2. Show us the code you use to append the value of a button press and
display the number in the textbox of the Calculator.
3. You might need to set the RightToLeft property of the Textbox to
True. Again, it's difficult to be sure without seeing (the relevant
part of) your code.
On Nov 8, 12:29 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:
> Hello all,
> As the subject states I am now to VB, have been “playing” with it for
> a whole 4 weeks now.
> The three questions I have I know are going to be easy, but I cannot
> find the answer. Just hoping someone here can point me in the right
> direction.
> And yes, this is for a project in a class I am taking.
> The project is to build a calculator, for the most part, I have
> everything working, my issues are:
> 1. I have set the textbox properties for Maximum Length to 11.
> However, my answers still come out with more than 11 digits. If I use
> the keyboard to enter digits it will stop at 11, but I can enter as
> many digits as I like when using the program keypad.
> 2. My decimal point always starts to the left of my number, but moves
> to the correct place when I enter the next digit. For example, if I
> want to enter 3.6, my display will show .3 until I enter the 6 then it
> will read 3.6.
> 3. Finally, when I change the number from positive to negative the
> negative sign is on the right hand side of the display.
> If anyone can help my find the answers I would be very grateful.
>
> Doug{C}