zoukankan      html  css  js  c++  java
  • Winfrom之MaskedText(高级文本框)

    主要属性:
      Mask(设置输入的格式,以及规则)
      BeepOnError(输入错误字符会有提示音)
      PassWordChar(设置密码字符为:“”取消字符)
    
    主要代码:
                (mtxtYouBian:控件的名称)
                 mtxtYouBian.BeepOnError = true;//输入错误提示音
                mtxtYouBian.CutCopyMaskFormat = MaskFormat.IncludePromptAndLiterals;//制定相应规则
                mtxtYouBian.RejectInputOnFirstFailure = true;
    
                //IncludePrompt 只包括输入文本  不包括掩码字符
                //IncludeLiterals  只包括输入文本 掩码字符
                //ExcluedPromptAndLiterals  只包括输入文本
                mtxtYouBian.TextMaskFormat = MaskFormat.IncludePrompt;//设置错误提示音
                mtxtYouBian.PasswordChar = '*';//设置密码字符
                mtxtYouBian.PasswordChar = '';//取消密码字符                
    

      

  • 相关阅读:
    cmd 一键获取 所有连接过的wifi 密码
    MYSQL注入语句
    Web安全篇之SQL注入攻击
    Kali Linux 不能联网上网 解决方法
    php杂项
    laravel下的数据序列化
    填充数据
    css
    array
    GD库常用函数
  • 原文地址:https://www.cnblogs.com/leiminghui/p/13561573.html
Copyright © 2011-2022 走看看