首页|操作系统|软件开发|网页制作|媒体动画|数据库|ASP教程|ASP.NET教程|PHP教程|JSP教程|XML教程|建站资料|软件学院|行业资讯|平面设计|网络安全|晒IT论坛|IT人才
  位置: 晒IT >> ASP.NET教程 >> Asp.Net实例教程 >> 正文
 
 
带有小计算器的TextBox控件
带有小计算器的TextBox控件
 
 

/*hycapril@sohu.com

需要的添加的控件,  

  private System.Windows.Forms.TextBox textBox1;
  private System.Windows.Forms.Panel panel1;
  private System.Windows.Forms.Button B_1;
  private System.Windows.Forms.Button B_N1;
  private System.Windows.Forms.Button B_N2;
  private System.Windows.Forms.Button B_N3;
  private System.Windows.Forms.Button B_N4;
  private System.Windows.Forms.Button B_N5;
  private System.Windows.Forms.Button B_N6;
  private System.Windows.Forms.Button B_N7;
  private System.Windows.Forms.Button B_N8;
  private System.Windows.Forms.Button B_N9;
  private System.Windows.Forms.Button B_N0;
  private System.Windows.Forms.Button B_ok;
  private System.Windows.Forms.Button B_Cancel;
  private System.Windows.Forms.Button B_J;
  private System.Windows.Forms.Button B_JJ;
  private System.Windows.Forms.Button B_C;
  private System.Windows.Forms.Button B_CC;
  private System.Windows.Forms.Button B_D;
  private System.Windows.Forms.Button B_B;

*/

using System;
using System.Collections;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Windows.Forms;

namespace TextBoxControl
{
 /// <summary>
 /// TextBoxControl 的摘要说明。
 /// 带有小计算器的TextBox控件。
 /// hycapril 2005 04 06制作。
 /// </summary>

 public class TextBoxControl : System.Windows.Forms.UserControl
 {
  private System.Windows.Forms.TextBox textBox1;
  private System.Windows.Forms.Panel panel1;
  private System.Windows.Forms.Button B_1;
  private System.Windows.Forms.Button B_N1;
  private System.Windows.Forms.Button B_N2;
  private System.Windows.Forms.Button B_N3;
  private System.Windows.Forms.Button B_N4;
  private System.Windows.Forms.Button B_N5;
  private System.Windows.Forms.Button B_N6;
  private System.Windows.Forms.Button B_N7;
  private System.Windows.Forms.Button B_N8;
  private System.Windows.Forms.Button B_N9;
  private System.Windows.Forms.Button B_N0;
  private System.Windows.Forms.Button B_ok;
  private System.Windows.Forms.Button B_Cancel;
  private System.Windows.Forms.Button B_J;
  private System.Windows.Forms.Button B_JJ;
  private System.Windows.Forms.Button B_C;
  private System.Windows.Forms.Button B_CC;
  private System.Windows.Forms.Button B_D;
  private System.Windows.Forms.Button B_B;
  /// <summary>
  /// 必需的设计器变量。
  /// </summary>
  private System.ComponentModel.Container components = null;

  public TextBoxControl()
  {
   // 该调用是 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()
  {
   System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(TextBoxControl));
   this.textBox1 = new System.Windows.Forms.TextBox();
   this.B_1 = new System.Windows.Forms.Button();
   this.panel1 = new System.Windows.Forms.Panel();
   this.B_B = new System.Windows.Forms.Button();
   this.B_D = new System.Windows.Forms.Button();
   this.B_CC = new System.Windows.Forms.Button();
   this.B_C = new System.Windows.Forms.Button();
   this.B_JJ = new System.Windows.Forms.Button();
   this.B_J = new System.Windows.Forms.Button();
   this.B_Cancel = new System.Windows.Forms.Button();
   this.B_N0 = new System.Windows.Forms.Button();
   this.B_N9 = new System.Windows.Forms.Button();
   this.B_N8 = new System.Windows.Forms.Button();
[1] [2] [3] [4] [5] [6]  下一页
  • 上一篇: Asp.net中服务端控件事件是如何触发的
  • 下一篇: 为ASP.NET控件加入快捷菜单(1)
  •  告诉好友  打印此文 关闭窗口 返回顶部
     
    热点文章
     
     
    推荐文章
     
     
    相关文章

    | 设为首页 | 加入收藏 | 联系我们 | 友情链接 | 诚聘英才 |
    Copyright© 2008 ShaiIT.Com .All Rights Reserved
    下载alexa工具,提升您的网站排名