DevExpress.XtraEditors.TextEdit 设为密码输入框,解决办法: 设计窗口-->属性Properties-->Mask节点-->PasswordChar输入字符*.还可以设置最大长度等.…
场景 WinForm 应用,使用了 DevExpress.XtraEditors.TextEdit 控件的 KeyPress 和 Leave 事件.期望在 TextEdit 上按下回车键或者当 TextEdit 失去焦点时进行相关验证并弹窗提示. 问题 弹窗显示并关闭后,TextEdit 默认是 Focused 的状态,如果这时想切换至其他模块,会触发 Leave 事件进行二次弹窗. 解决 TextEdit 没有 LostFocus 方法.当进行第一次弹窗时,设置其他控件获取焦点,这样弹窗关闭的…
场景 使用DevExpress的EditText控件时,需要限制其输入类型为数字. 正常来说是窗体上拖拽一个TextEdit,然后在设计窗口点击小三角,选择Change Mask 但是如果说TextEdit控件不是拖拽上去而是由代码生成的,那么在代码中怎样设置只能输入数字. 关注公众号 霸道的程序猿 获取编程相关电子书.教程推送与免费下载. 实现 minTextEditX.Properties.Mask.MaskType = DevExpress.XtraEditors.Mask.MaskTyp…
DevExpress.XtraEditors.xtraScrollableControl里面加一个有高度的控件就有滚动条了…
1. 添加引用: Imports DevExpress.XtraEditors.ButtonsPanelControl 2. 添加按钮语句: GroupControl1.CustomHeaderButtons.Add(New GroupBoxButton("显示的名称", Nothing))…
让所有窗体都从DevExpress.XtraEditors.XtraForm继承. 第一步:在项目中添加 引用: DevExpress.BonusSkins.v14// DevExpress.Office.v14.2.Core 第二步:在软件的入口Program类的main函数的第一行代码前加上: DevExpress.UserSkins.BonusSkins.Register(); DevExpress.Skins.SkinManager.EnableFormSkins(); 第三步:建立一个…
未将对象引用设置到对象的实例.              此错误的实例(1)   1.   隐藏调用堆栈  在 DevExpress.XtraEditors.Repository.RepositoryItem.CreateDesigner()在 DevExpress.XtraEditors.Repository.RepositoryItem.FilterProperties(PropertyDescriptorCollection collection)在 DevExpress.XtraEdit…
场景 Winform控件-DevExpress18下载安装注册以及在VS中使用: https://blog.csdn.net/BADAO_LIUMANG_QIZHI/article/details/100061243 参照以上将DevExpress安装并引进到工具箱. 这里使用的是VS2013所以安装的DevExpress是14版本. 效果 实现 在窗体上选中TextEdit,然后点击右上角三角号,选择ChangeMask 然后选择Mask type 这里是限制数字类型,所以选择Numeric.…
场景 Winform控件-DevExpress18下载安装注册以及在VS中使用: https://blog.csdn.net/BADAO_LIUMANG_QIZHI/article/details/100061243 在上面已经成功安装DevExpress的前提下. 如果要使用其TextEdit控件实现一个类似于TextArea的效果. 注: 博客主页: https://blog.csdn.net/badao_liumang_qizhi 关注公众号 霸道的程序猿 获取编程相关电子书.教程推送与免…
设置水印代码: //设置水印值public static void SetWatermark(this TextEdit textEdit, string watermark) { textEdit.Properties.NullValuePromptShowForEmptyValue = true; textEdit.Properties.NullValuePrompt = watermark; } //清除水印值 public static void ClearWatermark(this…
场景 Winform中实现ZedGraph的多条Y轴(附源码下载): https://blog.csdn.net/BADAO_LIUMANG_QIZHI/article/details/100132245 在上面实现可以新增多条Y轴之后,实现新增自定义Y轴. 在新增窗体中设置Y轴的属性,用到以上几个控件,需要设置其默认值. 实现 设置EditText默认值 设置RadioGroup默认值 设置ColorPickEdit默认值…
.TextEditor(barEditItem)取文本 string editValue = barEditItem1.EditValue.ToString(); //错误,返回null string editValue = ((DevExpress.XtraEditors.TextEdit)barEditItem).EditValue.ToString(); //正确,返回文本框内容 .ComboBoxEdit(barEditItem)添加Item string item = "combobo…
1.TextEditor(barEditItem)取文本string editValue = barEditItem1.EditValue.ToString(); //错误,返回null string editValue = ((DevExpress.XtraEditors.TextEdit)barEditItem).EditValue.ToString(); //正确,返回文本框内容2.ComboBoxEdit(barEditItem)添加Itemstring item = "combobox…
这个小小的功能实现起来还是有一点点复杂, 分页单独一个usercontrol 出来,导致查询换页 与gridcontrol页面分离,  一般通过换页事件通知girdcontrol 做出查询 查询来说有时是查询所有,有时是查询一个月,或者别的时间. 在分页控件内的控件上做相应的赋值.想想实现起来还是有一定的复杂度. 如果数据量足够大 : 第一步是先查出数据总量,根据总量,把分页上的 数量,页数.当前页等做初始化,把第一页的数据通过数据库查询先赋值给gridcontrol,其余页面等用户点击时进行赋…
摘自: http://blog.sina.com.cn/s/blog_95cfa64601019wex.html .TextEditor(barEditItem)取文本 string editValue = barEditItem1.EditValue.ToString(); //错误,返回null string editValue = ((DevExpress.XtraEditors.TextEdit)barEditItem).EditValue.ToString(); //正确,返回文本框内…
1. 如何解决单击记录整行选中的问题 View->OptionsBehavior->EditorShowMode 设置为:Click 2. 如何新增一条记录 (1).gridView.AddNewRow() (2).实现 gridView_InitNewRow 事件 3.如何解决 GridControl 记录能获取而没有显示出来的问题 gridView.populateColumns(); 4.如何让行只能选择而不能编辑(或编辑某一单元格) (1).View->OptionsBehavi…
1.TextEditor(barEditItem)取文本 string editValue = barEditItem1.EditValue.ToString();    //错误,返回null string editValue = ((DevExpress.XtraEditors.TextEdit)barEditItem).EditValue.ToString();    //精确,返回文本框内容 DevExpress使用技巧2.ComboBoxEdit(barEditItem)添加Item…
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; namespace multiplePanel { public partial class Form1 : DevExpress.…
DevExpress是非常主流的.NET控件,目前全世界和中国都用很多用户使用,不过由于是英文版,初次接触的同学可能会觉得困难,这里就总结DevExpress常见的10个使用技巧. 1.TextEditor(barEditItem)取文本  string editValue = barEditItem1.EditValue.ToString();    //错误,返回null string editValue = ((DevExpress.XtraEditors.TextEdit)barEdit…
一.所有编辑器的公共功能 全部都可以绑定数据: 全部都可以独立使用或用于由 Developer Express 提供的容器控件 (XtraGrid.XtraVerticalGrid.XtraTreeList 和 XtraBars) 内的内置编辑: 全部都使用相同的样式.外观与感觉.以及工具提示机制,因为它们都派生于 BaseEdit 类. 要把某个特定的编辑器嵌入到容器控件中,则必须创建一个相应的 Repository 项. Repository 项是一个组件,存储了属于某个对应编辑器的属性和事…
DevExpress是非常主流的.NET控件,眼下全世界和中国都用非常多用户使用,只是因为是英文版,初次接触的同学可能会认为困难.这里就总结DevExpress常见的10个使用技巧. 1.TextEditor(barEditItem)取文本  string editValue = barEditItem1.EditValue.ToString();    //错误,返回null string editValue = ((DevExpress.XtraEditors.TextEdit)barEdi…
DEVexpress GridControl 属性设置 2013年11月22日 ⁄ 综合 ⁄ 共 18319字 ⁄ 字号 小 中 大 ⁄ 评论关闭 1. 如何解决单击记录整行选中的问题 View->OptionsBehavior->EditorShowMode 设置为:Click 2. 如何新增一条记录 (1).gridView.AddNewRow() (2).实现 gridView_InitNewRow 事件 3.如何解决 GridControl 记录能获取而没有显示出来的问题 gridVi…
如图,去掉该编辑器功能. 1.detailView   protected override void OnActivated()        {            base.OnActivated();            // Perform various tasks depending on the target View.            foreach (IntegerPropertyEditor propertyEditor in View.GetItems<Inte…
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; using DevExpress.XtraEditors.DXErrorProvider; using DevExpress.Xtr…
背景:在窗体开发中使控件的位置不随窗体的大小改变而变化的问题?这是一个同事在开发时遇到的问题,在思考试错之后,写出如下代码. 声明成员: Point m_InitLocation; Size m_InitFormSize; ; Size m_CurrentFormSize; Point m_CurrentTBLocation; 主要代码: private void XtraForm1_SizeChanged(object sender, EventArgs e) { m_CurrentFormS…
父窗体的代码: 扩展Enter键相当于Tab键的思路: 1.创建 窗体的父类2.在父类中重写Form中的ProcessCmdKey方法,在相关控件上按回车键相当于按了Tab 键3.让窗体继承新建的窗体父类,共享父类的功能方法 #region 处理窗体上的Enter键--在非Button.Grid控件上Enter键相当于Tab键 protected override bool ProcessCmdKey(ref Message msg,Keys keyData) { string acString…
http://blog.csdn.net/davinciyxw/article/details/5604209 1.TextEditor(barEditItem)取文本 string editValue = barEditItem1.EditValue.ToString(); //错误,返回null string editValue = ((DevExpress.XtraEditors.TextEdit)barEditItem).EditValue.ToString(); //正确,返回文本框内…
using Common; using DevExpress.XtraEditors; using FileModel.UpLoad; using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.IO; using System.Linq; using System.Net.Sockets; us…
TextEdit控件 以文本框的形式绑定各种形式的选择框: 文本框设置 输入 密码 字符 时, 要有 * 号掩盖输入的字符, 代码如下: textEdit1.Properties.PasswordChar = ’ * ’; ButtonEdit 控件 以 button按钮的形式 绑定各种形式的选择框: 控件样式 截图 设置文本框右侧的按钮 在属性中Properties下的Buttons项,进入EditorButton集合编辑器, ButtonEdit的文本框右侧的按钮可以有多个,在EditorB…
1.Navigation & Layout 1.1 Bar Manager 如果想在窗体或用户控件(user control)上添加工具条(bars)或弹出菜单(popup menus),我们 需要把一个不可见的控件(component)BarManager(Navigation&Layout)拖放到这个窗体或用户控件上.这个控 件维护工具条在窗体上的布局,处理用户的行为(processes an end-user's actions),提供一些定制功能等等.这个控件维护 工具条.工具条项…