你双击你的系统时间(右下角那个)会弹出一个对话框
在这个界面上,会有一个时钟一直在走,时钟的下面有个控,类是DomainUpDown控件,
我觉得应该是一个复合控件
显示格式为:上午(下午)  hh:mm:ss选中时或分,点击调节按钮,可调整时间,点击时或分,可手动修改时间。(秒的部分也也一样)请问像这样的控件要如何制作,或者,有什么控件经过修改可以达到这样的效果.
最好能制作一个小程序发给我[email protected]
能实现效果的立马结贴给分bey the way
CSDN上如何上传图片啊,想截个图贴上来,结果发现这边,只有"插入图片"这个按钮,而且只支持url

解决方案 »

  1.   

    by the way 
    - -怎么会多个e
      

  2.   

    找人用FLASH画一个,扔网页上就行了
      

  3.   

    #regionusing System;
    using System.Drawing;
    using System.Windows.Forms;#endregionnamespace WindowsFormsApplication1
    {
        public partial class TimePicker : UserControl
        {
            private Button _butDown;
            private Button _butUp;
            private MaskedTextBox _textbox;
            private Timer _timer;        public TimePicker()
            {
                InitializeComponent();            _timer = new Timer();
                _timer.Interval = 500;
                _timer.Tick += new EventHandler(_timer_Tick);
                _timer.Start();            _butDown.Click += new EventHandler(_butDown_Click);
                _butUp.Click += new EventHandler(_butUp_Click);            _textbox.HidePromptOnLeave = true;
                _textbox.Text = DateTime.Now.ToString("HH:mm:ss");        }        void _butUp_Click(object sender, EventArgs e)
            {
                _timer.Stop();
                //++
                
                _textbox.Focus();
            }        void _butDown_Click(object sender, EventArgs e)
            {
                _timer.Stop();
                //--
                _textbox.Focus();
            }        void _timer_Tick(object sender, EventArgs e)
            {
                _textbox.Text = DateTime.Now.ToString("HH:mm:ss");
            }        public string Value
            {
                get
                {
                    return this._textbox.Text;
                }
            }        public void Apply()
            {
                _timer.Start();
            }        #region 组件设计器生成的代码        /// <summary> 
            /// 设计器支持所需的方法 - 不要
            /// 使用代码编辑器修改此方法的内容。
            /// </summary>
            private void InitializeComponent()
            {
                _butDown = new Button();
                _butUp = new Button();
                _textbox = new MaskedTextBox();
                SuspendLayout();
                // 
                // _butDown
                // 
                _butDown.Location = new Point(73, 11);
                _butDown.Name = "_butDown";
                _butDown.Size = new Size(13, 10);
                _butDown.TabIndex = 5;
                _butDown.Text = "button2";
                _butDown.UseVisualStyleBackColor = true;
                // 
                // _butUp
                // 
                _butUp.Location = new Point(73, 0);
                _butUp.Name = "_butUp";
                _butUp.Size = new Size(13, 10);
                _butUp.TabIndex = 4;
                _butUp.Text = "button1";
                _butUp.UseVisualStyleBackColor = true;
                // 
                // _textbox
                // 
                _textbox.Location = new Point(0, 0);
                _textbox.Mask = "90:00:00";
                _textbox.Name = "_textbox";
                _textbox.Size = new Size(71, 21);
                _textbox.TabIndex = 3;
                _textbox.TextAlign = HorizontalAlignment.Right;
                _textbox.ValidatingType = typeof (DateTime);
                // 
                // TimePicker
                // 
                AutoScaleDimensions = new SizeF(6F, 12F);
                AutoScaleMode = AutoScaleMode.Font;
                Controls.Add(_butDown);
                Controls.Add(_butUp);
                Controls.Add(_textbox);
                Name = "TimePicker";
                Size = new Size(92, 25);
                ResumeLayout(false);
                PerformLayout();
            }        #endregion
        }
    }