UCNumTextBox.Designer.cs 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145
  1. // ***********************************************************************
  2. // Assembly : HZH_Controls
  3. // Created : 08-08-2019
  4. //
  5. // ***********************************************************************
  6. // <copyright file="UCNumTextBox.Designer.cs">
  7. // Copyright by Huang Zhenghui(黄正辉) All, QQ group:568015492 QQ:623128629 Email:623128629@qq.com
  8. // </copyright>
  9. //
  10. // Blog: https://www.cnblogs.com/bfyx
  11. // GitHub:https://github.com/kwwwvagaa/NetWinformControl
  12. // gitee:https://gitee.com/kwwwvagaa/net_winform_custom_control.git
  13. //
  14. // If you use this code, please keep this note.
  15. // ***********************************************************************
  16. namespace HZH_Controls.Controls
  17. {
  18. /// <summary>
  19. /// Class UCNumTextBox.
  20. /// Implements the <see cref="System.Windows.Forms.UserControl" />
  21. /// </summary>
  22. /// <seealso cref="System.Windows.Forms.UserControl" />
  23. partial class UCNumTextBox
  24. {
  25. /// <summary>
  26. /// 必需的设计器变量。
  27. /// </summary>
  28. private System.ComponentModel.IContainer components = null;
  29. /// <summary>
  30. /// 清理所有正在使用的资源。
  31. /// </summary>
  32. /// <param name="disposing">如果应释放托管资源,为 true;否则为 false。</param>
  33. protected override void Dispose(bool disposing)
  34. {
  35. if (disposing && (components != null))
  36. {
  37. components.Dispose();
  38. }
  39. base.Dispose(disposing);
  40. }
  41. #region 组件设计器生成的代码
  42. /// <summary>
  43. /// 设计器支持所需的方法 - 不要
  44. /// 使用代码编辑器修改此方法的内容。
  45. /// </summary>
  46. private void InitializeComponent()
  47. {
  48. this.txtNum = new HZH_Controls.Controls.TextBoxEx();
  49. this.btnMinus = new System.Windows.Forms.Panel();
  50. this.btnAdd = new System.Windows.Forms.Panel();
  51. this.SuspendLayout();
  52. //
  53. // txtNum
  54. //
  55. this.txtNum.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right)));
  56. this.txtNum.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(247)))), ((int)(((byte)(247)))), ((int)(((byte)(247)))));
  57. this.txtNum.BorderStyle = System.Windows.Forms.BorderStyle.None;
  58. this.txtNum.DecLength = 3;
  59. this.txtNum.Font = new System.Drawing.Font("Arial Unicode MS", 15F);
  60. this.txtNum.InputType = TextInputType.Number;
  61. this.txtNum.Location = new System.Drawing.Point(37, 11);
  62. this.txtNum.Margin = new System.Windows.Forms.Padding(0);
  63. this.txtNum.MaxValue = new decimal(new int[] {
  64. 1000000,
  65. 0,
  66. 0,
  67. 0});
  68. this.txtNum.MinValue = new decimal(new int[] {
  69. 0,
  70. 0,
  71. 0,
  72. 0});
  73. this.txtNum.MyRectangle = new System.Drawing.Rectangle(0, 0, 0, 0);
  74. this.txtNum.Name = "txtNum";
  75. this.txtNum.OldText = null;
  76. this.txtNum.PromptColor = System.Drawing.Color.Gray;
  77. this.txtNum.PromptFont = new System.Drawing.Font("微软雅黑", 15F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel);
  78. this.txtNum.PromptText = "";
  79. this.txtNum.RegexPattern = "";
  80. this.txtNum.Size = new System.Drawing.Size(78, 27);
  81. this.txtNum.TabIndex = 9;
  82. this.txtNum.Text = "1";
  83. this.txtNum.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
  84. this.txtNum.FontChanged += new System.EventHandler(this.txtNum_FontChanged);
  85. this.txtNum.MouseDown += new System.Windows.Forms.MouseEventHandler(this.txtNum_MouseDown);
  86. //
  87. // btnMinus
  88. //
  89. this.btnMinus.BackColor = System.Drawing.Color.Transparent;
  90. this.btnMinus.BackgroundImage = global::HZH_Controls.Properties.Resources.ic_remove_black_18dp;
  91. this.btnMinus.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Center;
  92. this.btnMinus.Dock = System.Windows.Forms.DockStyle.Left;
  93. this.btnMinus.Location = new System.Drawing.Point(2, 2);
  94. this.btnMinus.Name = "btnMinus";
  95. this.btnMinus.Size = new System.Drawing.Size(32, 40);
  96. this.btnMinus.TabIndex = 6;
  97. this.btnMinus.MouseDown += new System.Windows.Forms.MouseEventHandler(this.btnMinus_MouseDown);
  98. //
  99. // btnAdd
  100. //
  101. this.btnAdd.BackColor = System.Drawing.Color.Transparent;
  102. this.btnAdd.BackgroundImage = global::HZH_Controls.Properties.Resources.ic_add_black_18dp;
  103. this.btnAdd.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Center;
  104. this.btnAdd.Dock = System.Windows.Forms.DockStyle.Right;
  105. this.btnAdd.Location = new System.Drawing.Point(118, 2);
  106. this.btnAdd.Name = "btnAdd";
  107. this.btnAdd.Size = new System.Drawing.Size(32, 40);
  108. this.btnAdd.TabIndex = 5;
  109. this.btnAdd.MouseDown += new System.Windows.Forms.MouseEventHandler(this.btnAdd_MouseDown);
  110. //
  111. // UCNumTextBox
  112. //
  113. this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None;
  114. this.Controls.Add(this.txtNum);
  115. this.Controls.Add(this.btnMinus);
  116. this.Controls.Add(this.btnAdd);
  117. this.Name = "UCNumTextBox";
  118. this.Padding = new System.Windows.Forms.Padding(2);
  119. this.Size = new System.Drawing.Size(152, 44);
  120. this.Load += new System.EventHandler(this.UCNumTextBox_Load);
  121. this.BackColorChanged += new System.EventHandler(this.UCNumTextBox_BackColorChanged);
  122. this.ResumeLayout(false);
  123. this.PerformLayout();
  124. }
  125. #endregion
  126. /// <summary>
  127. /// The BTN add
  128. /// </summary>
  129. private System.Windows.Forms.Panel btnAdd;
  130. /// <summary>
  131. /// The BTN minus
  132. /// </summary>
  133. private System.Windows.Forms.Panel btnMinus;
  134. /// <summary>
  135. /// The text number
  136. /// </summary>
  137. private TextBoxEx txtNum;
  138. }
  139. }