valueinputbox.cs

来自「工作流引擎」· CS 代码 · 共 73 行

CS
73
字号
using System;
using System.Collections;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Windows.Forms;

namespace BigClient.util
{
	/// <summary>
	/// ValueInputBox 的摘要说明。
	/// </summary>
	public class ValueInputBox : System.Windows.Forms.TextBox
	{
		/// <summary>
		/// 必需的设计器变量。
		/// </summary>
		private System.ComponentModel.Container components = null;
		private Object thisvalue = null;

		public ValueInputBox()
		{
			// 该调用是 Windows.Forms 窗体设计器所必需的。
			InitializeComponent();

			// TODO: 在 InitComponent 调用后添加任何初始化
		}

		/// <summary>
		/// 清理所有正在使用的资源。
		/// </summary>
		protected override void Dispose( bool disposing )
		{
			if( disposing )
			{
				if( components != null )
					components.Dispose();
			}
			base.Dispose( disposing );
		}

		#region 组件设计器生成的代码
		/// <summary>
		/// 设计器支持所需的方法 - 不要使用代码编辑器 
		/// 修改此方法的内容。
		/// </summary>
		private void InitializeComponent()
		{

		}
		#endregion

		protected override void OnPaint(PaintEventArgs pe)
		{
			// TODO: 在此添加自定义绘画代码

			// 调用基类 OnPaint
			base.OnPaint(pe);
		}
		public object Value
		{
			get
			{
				return thisvalue;
			}
			set
			{
				this.thisvalue = value;
			}
		}
	}
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?