作成日: 2021/06/09 最終更新日: 2021/06/09
文書種別
使用方法
詳細
C1TextBoxのEmptyAsNullをTrueに、NullTextを空白に設定すると、入力した日付を全選択してDeleteキーで全てクリアすることが可能になります。
◎サンプルコード(VB)
◎サンプルコード(VB)
C1TextBox1.DataType = GetType(DateTime)
C1TextBox1.DateTimeInput = True
C1TextBox1.FormatType = C1.Win.C1Input.FormatTypeEnum.CustomFormat
C1TextBox1.CustomFormat = "yyyy/MM/dd"
C1TextBox1.EmptyAsNull = True
C1TextBox1.NullText = ""
◎サンプルコード(C#)
c1TextBox1.DataType = typeof(DateTime);
c1TextBox1.DateTimeInput = true;
c1TextBox1.FormatType = C1.Win.C1Input.FormatTypeEnum.CustomFormat;
c1TextBox1.CustomFormat = "yyyy/MM/dd";
c1TextBox1.EmptyAsNull = true;
c1TextBox1.NullText = "";