zoukankan      html  css  js  c++  java
  • 练手之日期选择组件

    前些天写的一个日期选择组件,
    因为打算转向.net所以开始些写一些基础的组件,但主要还是为了练练手,
    用C#2005写的
    其中包括动态控件数组,与DateTime的使用


    组件代码:
    Using directives

    namespace STextBox
    {
      
    public partial class Calendar : UserControl
      
    {
        
    Variable declare
        
    Control core
        
    public Calendar()
        
    {
          InitializeComponent();
        }

        
    private void Calendar_Load(object sender, EventArgs e)
        
    {
          mRsz 
    = true;
          
    this.Size = new Size(175239);
          InitControl();
          mRsz 
    = false;
        }

        
    private void Calendar_Resize(object sender, EventArgs e)
        
    {
          
    if (mRsz) return;
          mRsz 
    = true;
          
    //180
          this.Size = new Size(175,180);
          
    if (panel2.Visible)
            
    this.Size = new Size(175this.Size.Height + panel2.Height);
          
    if (panel4.Visible)
          
    {
            panel4.Top 
    = panel2.Visible ? panel2.Height : 0 + 180;
            
    this.Size = new Size(175this.Size.Height + panel4.Height);
          }

          mRsz 
    = false;
        }


        
    private void panel4_Paint(object sender, PaintEventArgs e)
        
    {
        
        }

      }

    }



    一个函数库,现在还只有很少的一部分函数
    namespace CommCode
    {
      
    /// <summary>
      
    /// 通用方法
      
    /// </summary>

      public static class CM
      
    {
        
    名称编码处理
        
      }

    }
  • 相关阅读:
    PAIRING WORKFLOW MANAGER 1.0 WITH SHAREPOINT 2013
    Education resources from Microsoft
    upgrade to sql server 2012
    ULSViewer sharepoint 2013 log viewer
    Top 10 Most Valuable Microsoft SharePoint 2010 Books
    讨论 Setsockopt选项
    使用 Alchemy 技术编译 C 语言程序为 Flex 可调用的 SWC
    Nagle's algorithm
    Nagle算法 TCP_NODELAY和TCP_CORK
    Design issues Sending small data segments over TCP with Winsock
  • 原文地址:https://www.cnblogs.com/pvistely/p/64195.html
Copyright © 2011-2022 走看看