|
|
TextBox 컨트롤에서
헥사 값만 (0 ~ F ) 입력되게 ..
1. 이벤트 KeyPress 추가
2. 코드 추가
private void textBox1_KeyPress(object sender, System.Windows.Forms.KeyPressEventArgs e)
{
if ("ABCDEF0123456789abcdef".IndexOf(e.KeyChar) == -1)
e.Handled = true;
}
헥사 값만 (0 ~ F ) 입력되게 ..
1. 이벤트 KeyPress 추가
2. 코드 추가
private void textBox1_KeyPress(object sender, System.Windows.Forms.KeyPressEventArgs e)
{
if ("ABCDEF0123456789abcdef".IndexOf(e.KeyChar) == -1)
e.Handled = true;
}
IE9 이상으로 브라우저를 업그레이드하거나, 크롬, 파이어폭스 등 최신 브라우저를 이용해주세요.