DaniWeb IT Discussion Community

DaniWeb IT Discussion Community (http://www.daniweb.com/forums/index.php)
-   VB.NET (http://www.daniweb.com/forums/forum58.html)
-   -   anyone know how to append in integer (http://www.daniweb.com/forums/thread160085.html)

lich Nov 30th, 2008 5:05 am
anyone know how to append in integer
 
hey

im trying to implement a calculator.

i need to append values to label. like when i hit 1 button label should show 1 and when i hit 2 button it should show 12.. not just 2


can anyone help me out

waynespangler Nov 30th, 2008 8:26 pm
Re: anyone know how to append in integer
 
try this
        If e.KeyCode >= 48 And e.KeyCode <= 57 Then
            Label1.Text &= Chr(e.KeyValue.ToString)
        End If


All times are GMT -4. The time now is 8:22 am.

Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2009 DaniWeb® LLC