Numeric TextBox

后端 未结 13 1124
再見小時候
再見小時候 2020-12-03 20:01

Im new to programming and I dont know very much about but I\'m making a calculator, and i want to use a textbox that only acepts numbers and decimals, and when the user past

13条回答
  •  没有蜡笔的小新
    2020-12-03 20:44

    If you look closely, In Windows Calculator, the numbers are shown in a label not a textbox (It does not receive focus). The window receives keyboard events.

    So look at KeyPressed and KeyDown events on the form.

提交回复
热议问题