DEV零碎小知识

1 设定输入框获得焦点

   txtGoodIDName.Focus();

2 设定数字xx.xx格式的输入框

this.txtMakeCollections.Properties.Mask.EditMask = "###############0.00#####";        
this.txtMakeCollections.Properties.Mask.MaskType = DevExpress.XtraEditors.Mask.MaskType.Numeric;        
this.txtMakeCollections.Properties.Mask.UseMaskAsDisplayFormat = true;        

  

原文地址:https://www.cnblogs.com/YangBinChina/p/2954432.html