Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 |
Tags
- flutter button
- debugShowCheckedModeBanner
- Properties.Settings.Default
- flutter
- dart:io
- debug banner
- peaks
- flutter tcpip server
- array
- AlertDialog
- showDialog
- TCPIP
- flutter tcpip client
- ListView.build
- Server
- ubuntu 19 한글 입력
- c
- Listview filtering
Archives
- Today
- Total
Louie De Janeiru
Textbox에 숫자만 입력받기 본문
private void textBoxTargetTemp_KeyPress(object sender, KeyPressEventArgs e)
{
// 숫자와 백스페이스와 '.' 키를 제외한 나머지를 바로 처리
if (!(char.IsDigit(e.KeyChar) || e.KeyChar == Convert.ToChar(Keys.Back) || e.KeyChar == 46))
{
e.Handled = true;
}
}
'C#' 카테고리의 다른 글
Screen Record (0) | 2020.09.16 |
---|---|
Properties.Settings.Default (0) | 2019.09.24 |
Decimal point handling (0) | 2019.09.23 |
DataGridView double buffered enable (0) | 2019.06.12 |
TextBox text null check (0) | 2018.11.13 |