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

try this

If e.KeyCode >= 48 And e.KeyCode <= 57 Then
            Label1.Text &= Chr(e.KeyValue.ToString)
        End If
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.