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;        

 

  

posted @ 2013-03-11 18:14  杨斌_济南  阅读(378)  评论(0编辑  收藏  举报