본문 바로가기

Project/SMI

[C#] TextBox에 입력받은 문자열이 숫자 인지 판별



private void okbt_Click(object sender, EventArgs e)
        {
            MealShowProc();
            if (TextBoxNullCheck())
            {
                if (Char.IsDigit(Hourtb.Text, 0) && Char.IsDigit(mintb.Text, 0))//TextBox가 숫자인지 검사
                {
                    SettingTimer();
                    TimesettingHide();
                    SoundButtonShow();
                }
                else
                {
                    MessageBox.Show("Only Interger Press");
                    return;
                }
            }
            else
            {
                MessageBox.Show("Input Check");
            }
           
        }

'Project > SMI' 카테고리의 다른 글

[C#] Timer 사용  (0) 2010.12.06
SMI (WindowMobile Programming)  (0) 2010.12.06
[C#] DateTime을 이용한 알람 설정  (0) 2010.12.06
[C#] String속성 : LastIndexOf  (0) 2010.12.04
[C#] Window Mobile 강제로 Explorer 실행하기  (0) 2010.12.04