I Have two TextBoxs on a form txtText1 and txtText2
In the txtText1 code window I have
txtText2.text = Round(txtText1 / 0.787654),2)
So as you type a figure into textbox1 the result apperars in textbox2,,,,,example inputing 12.99 into textbox1 result in textbox 2 is 16.49. Right this works as it should.
Problem
Input 31.11 the result should be 39.50 right !!!!! But the result is 39.5 What happend to the zero after the five, How can I get it to display 39.50 I have tryed Rounding,int,fix,Ccuy,Cdbl etc etc
Anyone have any ideas I am new to VB and can't get my head around this???
any help with much thanks
Duf
In the txtText1 code window I have
txtText2.text = Round(txtText1 / 0.787654),2)
So as you type a figure into textbox1 the result apperars in textbox2,,,,,example inputing 12.99 into textbox1 result in textbox 2 is 16.49. Right this works as it should.
Problem
Input 31.11 the result should be 39.50 right !!!!! But the result is 39.5 What happend to the zero after the five, How can I get it to display 39.50 I have tryed Rounding,int,fix,Ccuy,Cdbl etc etc
Anyone have any ideas I am new to VB and can't get my head around this???
any help with much thanks
Duf