我有一个带有DateTime编辑掩码的DevExpress.XtraEditors.SpinEdit:
baseSpinEdit1.Properties.Mask.MaskType = MaskType.DateTime;
baseSpinEdit1.Properties.Mask.EditMask = "t";
baseSpinEdit1.Properties.EditFormat.FormatType = FormatType.DateTime;
baseSpinEdit1.Properties.EditFormat.FormatString = "t";
baseSpinEdit1.Properties.DisplayFormat.FormatType = FormatType.DateTime;
baseSpinEdit1.Properties.DisplayFormat.FormatString = "t";
baseSpinEdit1.Properties.Mask.UseMaskAsDisplayFormat = true
当控件具有焦点时,这可以正常工作,但只要另一个控件获得焦点,它就会被清除。有什么想法吗?