比如 Textbox 再属性编辑器里隐藏掉他默认的全部属性,然后全部自己定义。
[Browsable(false)] public bool WordWrap { get { return base.WordWrap; } set { base.WordWrap = value; } } [Browsable(false)] public bool Visible { get { return base.Visible; } set { base.Visible = value; } } [Browsable(false)] public bool UseWaitCursor { get { return base.UseWaitCursor; } set { base.UseWaitCursor = value; } } [Browsable(false)] public bool UseSystemPasswordChar { get { return base.UseSystemPasswordChar; } set { base.UseSystemPasswordChar = value; } } [Browsable(false)] public HorizontalAlignment TextAlign { get { return base.TextAlign; } set { base.TextAlign = value; } } [Browsable(false)] public object Tag { get { return base.Tag; } set { base.Tag = value; } } [Browsable(false)] public bool TabStop { get { return base.TabStop; } set { base.TabStop = value; } } [Browsable(false)] public int TabIndex { get { return base.TabIndex; } set { base.TabIndex = value; } } [Browsable(false)] public Size Size { get { return base.Size; } set { base.Size = value; } } [Browsable(false)] public bool ShortcutsEnabled { get { return base.ShortcutsEnabled; } set { base.ShortcutsEnabled = value; } } [Browsable(false)] public RightToLeft RightToLeft { get { return base.RightToLeft; } set { base.RightToLeft = value; } } [Browsable(false)] public Size MinimumSize { get { return base.MinimumSize; } set { base.MinimumSize = value; } } [Browsable(false)] public int MaxLength { get { return base.MaxLength; } set { base.MaxLength = value; } } [Browsable(false)] public ImeMode ImeMode { get { return base.ImeMode; } set { base.ImeMode = value; } } [Browsable(false)] public ScrollBars ScrollBars { get { return base.ScrollBars; } set { base.ScrollBars = value; } } [Browsable(false)] public int Right { get { return base.Right; }} [Browsable(false)] public bool ReadOnly { get { return base.ReadOnly; } set { base.ReadOnly = value; } } [Browsable(false)] public char PasswordChar { get { return base.PasswordChar; } set { base.PasswordChar = value; } } [Browsable(false)] public Size MaximumSize { get { return base.MaximumSize; } set { base.MaximumSize = value; } } [Browsable(false)] public Padding Margin { get { return base.Margin; } set { base.Margin = value; } } [Browsable(false)] public Point Location { get { return base.Location; } set { base.Location = value; } } [Browsable(false)] public ImeMode ImeModeBase { get { return base.ImeModeBase; } set { base.ImeModeBase = value; } } [Browsable(false)] public string[] Lines { get { return base.Lines; } set { base.Lines = value; } } [Browsable(false)] public bool HideSelection { get { return base.HideSelection; } set { base.HideSelection = value; } } [Browsable(false)] public Color ForeColor { get { return base.ForeColor; } set { base.ForeColor = value; } } [Browsable(false)] public Font Font { get { return base.Font; } set { base.Font = value; } } [Browsable(false)] public bool Enabled { get { return base.Enabled; } set { base.Enabled = value; } } [Browsable(false)] public DockStyle Dock { get { return base.Dock; } set { base.Dock = value; } } [Browsable(false)] public Cursor Cursor { get { return base.Cursor; } set { base.Cursor = value; } } [Browsable(false)] public ContextMenuStrip ContextMenuStrip { get { return base.ContextMenuStrip; } set { base.ContextMenuStrip = value; } } [Browsable(false)] public CharacterCasing CharacterCasing { get { return base.CharacterCasing; } set { base.CharacterCasing = value; } } [Browsable(false)] public bool CausesValidation { get { return base.CausesValidation; } set { base.CausesValidation = value; } } [Browsable(false)] public BorderStyle BorderStyle { get { return base.BorderStyle; } set { base.BorderStyle = value; } } [Browsable(false)] public Color BackColor { get { return base.BackColor; } set { base.BackColor = value; } } [Browsable(false)] public AutoCompleteSource AutoCompleteSource { get { return base.AutoCompleteSource; } set { base.AutoCompleteSource = value; } } [Browsable(false)] public AutoCompleteMode AutoCompleteMode { get { return base.AutoCompleteMode; } set { base.AutoCompleteMode = value; } } [Browsable(false)] public AutoCompleteStringCollection AutoCompleteCustomSource { get { return base.AutoCompleteCustomSource; } set { base.AutoCompleteCustomSource = value; } } [Browsable(false)] public AnchorStyles Anchor { get { return base.Anchor; } set { base.Anchor = value; } } [Browsable(false)] public bool AllowDrop { get { return base.AllowDrop; } set { base.AllowDrop = value; } } [Browsable(false)] public AccessibleRole AccessibleRole { get { return base.AccessibleRole; } set { base.AccessibleRole = value; } } [Browsable(false)] public string AccessibleName { get { return base.AccessibleName; } set { base.AccessibleName = value; } } [Browsable(false)] public string AccessibleDescription { get { return base.AccessibleDescription; } set { base.AccessibleDescription = value; } } [Browsable(false)] public string AccessibleDefaultActionDescription { get { return base.AccessibleDefaultActionDescription; } set { base.AccessibleDefaultActionDescription = value; } } [Browsable(false)] public bool AcceptsReturn { get { return base.AcceptsReturn; } set { base.AcceptsReturn = value; } } [Browsable(false)] public bool AcceptsTab { get { return base.AcceptsTab; } set { base.AcceptsTab = value; } } [Browsable(false)] public override string Text { get {return base.Text;}set{base.Text = value;} } [Browsable(false)] public override bool Multiline { get { return base.Multiline; } set { base.Multiline = value; } }
相关推荐
c# string类属性和方法 字符串操作定义一个string的变量:string str = "abc123";属性/方法作用返回类型补充说明str.Length取文本长度intstr.Replace("要被替
c#控件开发:自定义控件方式一,复合控件自定义控件分为三种方式:1.复合控件:将标准控件组合起来class 你的控件名 : UserControl{}2.扩展控件:继承于标准控件class 你的控件名 : Button {} 如果扩展控件
MFc组件 控件属性与方法大全所有控件的公共属性:Visiable:控件是否可见。Disabled:控件是否被禁止、被禁止的控件无法接受键盘和鼠标输入。Group:是否从这个空间开始一个新组。指定基于Tab 键顺序的一组控件中的第
win7设置更改文件默认打开方式 修改不了修复方法设置指定文件扩展名的文件 打开方式应用默认的应用程序时,设置不了浏览添加也没反应.怎么办呢?原因:程序的路径发生了改变,而注册表里的路径未修改.解决方法:按 window键+R 打开"运行&
c#调用DLL文件,c#调用DLL里面的函数//以下是调用jiemi.dll里面 jiemi()函数的声明写法 //相当于易语言中的 DLL命令定义表, 包含了文件路径 函数名 参数 数据类型等等 [DllIm
c# 常用控件_(图片框)PictureBox_WebBrowser_按钮(Button)_编辑框(TextBox)_标签(Label)_单选框(RadioButton)_复选框(CheckBox)_进度条(Pro
WindowsAPI创建控件 或创建子窗口方法创建按钮一般是在 WM_CREATE消息的响应中创建子窗口 创建控件 创建按钮,创建单选框,复选框 等等按钮的创建:创建按钮第一个参数(类名)必须是 button 不区分大小写case WM_CREA
c# c++ MFc .NET Framework 4.5 MSDN中文版 离线帮助文档手册 安装方法找了很多文档 发现好像只有2010 和 2012有中文版的 不过2013也可以装 安装步骤:第一步:先下载。VS2012Documentation.iso(文件大小是2.17G的那个)链接:https
通达信软件重启或重新登录后,自定义的指标自动恢复到原来默认的每次重启 发现原来设置的主图指标没了 又变回原来系统自带的指标原因:解决方法:不要选择 叠加其他指标 而是直接 选择主图指标 然后如果有必要的话 可以在自己编写的指标里 额外添加上 MA5MA10M
html前端开发框架:Bootstrap(第5-10课) 哔哩哔哩课程Bootstrap前端框架中文官网: http://www.bootcss.com/官网: http://getbootstrap.com/推荐使用: http://bootstrap.css88.c