• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

C# Forms.MaskInputRejectedEventArgs类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了C#中System.Windows.Forms.MaskInputRejectedEventArgs的典型用法代码示例。如果您正苦于以下问题:C# MaskInputRejectedEventArgs类的具体用法?C# MaskInputRejectedEventArgs怎么用?C# MaskInputRejectedEventArgs使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



MaskInputRejectedEventArgs类属于System.Windows.Forms命名空间,在下文中一共展示了MaskInputRejectedEventArgs类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。

示例1: maskedTextBox1_MaskInputRejected

 private void maskedTextBox1_MaskInputRejected(object sender, MaskInputRejectedEventArgs e)
 {
     double val  =0;
     double.TryParse(maskedTextBox1.Text, out val);
     if(val <=4)
         student.GPA = val;
 }
开发者ID:NilminiKiriwandala,项目名称:3Tire,代码行数:7,代码来源:Student+Registration.cs


示例2: maskedTextBox1_MaskInputRejected

		private void maskedTextBox1_MaskInputRejected(object sender,
  MaskInputRejectedEventArgs e)
		{
			Control control = (Control)sender;
			// Show an error notification.
			toolTip1.Show("That character is not allowed in this text box.",
				  control, new Point(control.Height, control.Height + 1));
		}
开发者ID:ehershey,项目名称:development,代码行数:8,代码来源:Form2.cs


示例3: GetMaskInputRejectedErrorMessage

        internal static string GetMaskInputRejectedErrorMessage(MaskInputRejectedEventArgs e)
        {
            string str;
            switch (e.RejectionHint)
            {
                case MaskedTextResultHint.PositionOutOfRange:
                    str = System.Design.SR.GetString("MaskedTextBoxHintPositionOutOfRange");
                    break;

                case MaskedTextResultHint.NonEditPosition:
                    str = System.Design.SR.GetString("MaskedTextBoxHintNonEditPosition");
                    break;

                case MaskedTextResultHint.UnavailableEditPosition:
                    str = System.Design.SR.GetString("MaskedTextBoxHintUnavailableEditPosition");
                    break;

                case MaskedTextResultHint.PromptCharNotAllowed:
                    str = System.Design.SR.GetString("MaskedTextBoxHintPromptCharNotAllowed");
                    break;

                case MaskedTextResultHint.SignedDigitExpected:
                    str = System.Design.SR.GetString("MaskedTextBoxHintSignedDigitExpected");
                    break;

                case MaskedTextResultHint.LetterExpected:
                    str = System.Design.SR.GetString("MaskedTextBoxHintLetterExpected");
                    break;

                case MaskedTextResultHint.DigitExpected:
                    str = System.Design.SR.GetString("MaskedTextBoxHintDigitExpected");
                    break;

                case MaskedTextResultHint.AlphanumericCharacterExpected:
                    str = System.Design.SR.GetString("MaskedTextBoxHintAlphanumericCharacterExpected");
                    break;

                case MaskedTextResultHint.AsciiCharacterExpected:
                    str = System.Design.SR.GetString("MaskedTextBoxHintAsciiCharacterExpected");
                    break;

                default:
                    str = System.Design.SR.GetString("MaskedTextBoxHintInvalidInput");
                    break;
            }
            return string.Format(CultureInfo.CurrentCulture, System.Design.SR.GetString("MaskedTextBoxTextEditorErrorFormatString"), new object[] { e.Position, str });
        }
开发者ID:pritesh-mandowara-sp,项目名称:DecompliedDotNetLibraries,代码行数:47,代码来源:MaskedTextBoxDesigner.cs


示例4: maskedTextBox1_MaskInputRejected

 void maskedTextBox1_MaskInputRejected(object sender, MaskInputRejectedEventArgs e)
 {
     if (maskedTextBox1.MaskFull)
     {
         toolTip1.ToolTipTitle = "Input Rejected - Too Much Data";
         toolTip1.Show("You cannot enter any more data into the date field. Delete some characters in order to insert more data.", maskedTextBox1, 0, -20, 5000);
     }
     else if (e.Position == maskedTextBox1.Mask.Length)
     {
         toolTip1.ToolTipTitle = "Input Rejected - End of Field";
         toolTip1.Show("You cannot add extra characters to the end of this date field.", maskedTextBox1, 0, -20, 5000);
     }
     else
     {
         toolTip1.ToolTipTitle = "Input Rejected";
         toolTip1.Show("You can only add numeric characters (0-9) into this date field.", maskedTextBox1, 0, -20, 5000);
     }
 }
开发者ID:777ondro,项目名称:sw-en,代码行数:18,代码来源:Form5.cs


示例5: txtStartTime_MaskInputRejected

 private void txtStartTime_MaskInputRejected(object sender, MaskInputRejectedEventArgs e)
 {
     if (txtStartTime.MaskFull)
     {
         toolTip.ToolTipTitle = "Invalid Time";
         toolTip.Show("You cannot enter any more data into the time field.", txtStartTime, 0, -20, 5000);
     } else if (e.Position == txtStartTime.Mask.Length)
     {
         toolTip.ToolTipTitle = "Invalid Time";
         toolTip.Show("You cannot add extra number to the end of this time.", txtStartTime, 0, -20, 5000);
     } else
     {
         toolTip.ToolTipTitle = "Invalid Time";
         toolTip.Show("You can only add numeric characters (0-9) into this time field.", txtStartTime, 0, -20, 5000);
     }
     btnOk.Enabled = false;
 }
开发者ID:Jchuchla,项目名称:vixen,代码行数:17,代码来源:EffectTimeEditor.cs


示例6: ser_op_MaskInputRejected

 private void ser_op_MaskInputRejected(object sender, MaskInputRejectedEventArgs e)
 {
 }
开发者ID:njmube,项目名称:ErpBapSoftNet_Producion,代码行数:3,代码来源:Frm_movimiento.cs


示例7: OnMaskInputRejected

 /// <summary>
 /// Raises the MaskInputRejected event.
 /// </summary>
 /// <param name="e">An MaskInputRejectedEventArgs that contains the event data.</param>
 protected virtual void OnMaskInputRejected(MaskInputRejectedEventArgs e)
 {
     if (MaskInputRejected != null)
         MaskInputRejected(this, e);
 }
开发者ID:Cocotteseb,项目名称:Krypton,代码行数:9,代码来源:KryptonRibbonGroupMaskedTextBox.cs


示例8: textCantHuespedes_MaskInputRejected

 private void textCantHuespedes_MaskInputRejected(object sender, MaskInputRejectedEventArgs e)
 {
     showToolTip("Ingrese solamente números.", textCantHuespedes, textCantHuespedes.Location);
 }
开发者ID:tferraro,项目名称:FrbaHotel,代码行数:4,代码来源:GenerarReserva.cs


示例9: txtPassword_MaskInputRejected

 private void txtPassword_MaskInputRejected(object sender, MaskInputRejectedEventArgs e)
 {
 }
开发者ID:nagraj1981,项目名称:Nagraj-IT-Management,代码行数:3,代码来源:LoginPage.cs


示例10: maskedTextBox_MaskInputRejected

 private void maskedTextBox_MaskInputRejected(object sender, MaskInputRejectedEventArgs e)
 {
     this.errorProvider.SetError(this.cloneMtb, MaskedTextBoxDesigner.GetMaskInputRejectedErrorMessage(e));
 }
开发者ID:pritesh-mandowara-sp,项目名称:DecompliedDotNetLibraries,代码行数:4,代码来源:MaskedTextBoxTextEditorDropDown.cs


示例11: UserName_MaskInputRejected

        private void UserName_MaskInputRejected(object sender, MaskInputRejectedEventArgs e)
        {

        }
开发者ID:carriercomm,项目名称:BillingSystem-2,代码行数:4,代码来源:Form1.cs


示例12: masktxtbTel_MaskInputRejected

 private void masktxtbTel_MaskInputRejected(object sender, MaskInputRejectedEventArgs e)
 {
 }
开发者ID:leoderas,项目名称:Bencaleth,代码行数:3,代码来源:IngresoAlcancia.cs


示例13: maskedTextBox2_MaskInputRejected

 private void maskedTextBox2_MaskInputRejected(object sender, MaskInputRejectedEventArgs e)
 {
     toolTip2.ToolTipTitle = "Invalid Input";
     toolTip2.Show("Invalid Sensitivity", maskedTextBox2, maskedTextBox2.Location, 5000);
 }
开发者ID:UmbleJA,项目名称:MOSS-Interface-Project,代码行数:5,代码来源:Form2.cs


示例14: maskedTextBox1_MaskInputRejected

 //shows a tooltip if the users ID contains invalid characters or is too long
 private void maskedTextBox1_MaskInputRejected(object sender, MaskInputRejectedEventArgs e)
 {
     toolTip1.ToolTipTitle = "Invalid Input";
     toolTip1.Show("Invalid UserID", maskedTextBox1, maskedTextBox1.Location, 5000);
 }
开发者ID:UmbleJA,项目名称:MOSS-Interface-Project,代码行数:6,代码来源:Form2.cs


示例15: textEstadia_MaskInputRejected

 private void textEstadia_MaskInputRejected(object sender, MaskInputRejectedEventArgs e)
 {
     showToolTip("Ingrese solamente números.", textEstadia, textEstadia.Location);
 }
开发者ID:tferraro,项目名称:FrbaHotel,代码行数:4,代码来源:RegistrarConsumibles.cs


示例16: maskedTextBox1_MaskInputRejected

 private void maskedTextBox1_MaskInputRejected(object sender, MaskInputRejectedEventArgs e)
 {
     //envia los datos al la capa negocios
 }
开发者ID:njmube,项目名称:PV_cafeteriaUTE,代码行数:4,代码来源:nEmpleado.cs


示例17: maskedTextBox3_MaskInputRejected

 private void maskedTextBox3_MaskInputRejected(object sender, MaskInputRejectedEventArgs e)
 {
     cnempleado.CelEmpleadoG = maskedTextBox3.Text;  //envia los datos al la capa negocios
 }
开发者ID:njmube,项目名称:PV_cafeteriaUTE,代码行数:4,代码来源:nEmpleado.cs


示例18: class_subject_MaskInputRejected

 private void class_subject_MaskInputRejected(object sender, MaskInputRejectedEventArgs e)
 {
 }
开发者ID:ethiele,项目名称:test-project-1,代码行数:3,代码来源:ListEditor.cs


示例19: tbBirthday_MaskInputRejected

 private void tbBirthday_MaskInputRejected(object sender, MaskInputRejectedEventArgs e)
 {
 }
开发者ID:phongferrari,项目名称:source-code-nama,代码行数:3,代码来源:Frm_CreditCard.cs


示例20: txtBranchID_MaskInputRejected

 private void txtBranchID_MaskInputRejected(object sender, MaskInputRejectedEventArgs e)
 {
 }
开发者ID:AlexanderLea,项目名称:Argus---acronym,代码行数:3,代码来源:LoginForm.cs



注:本文中的System.Windows.Forms.MaskInputRejectedEventArgs类示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C# Forms.MaskedTextBox类代码示例发布时间:2022-05-26
下一篇:
C# Forms.MainMenu类代码示例发布时间:2022-05-26
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap