Controls in .Net Framework之DomainUpDown Control

时间:2021-09-27 16:02:56

The DomainUpDown Control

  1 Controls in .Net Framework之DomainUpDown Controlusing  System;
  2 Controls in .Net Framework之DomainUpDown Control using  System.Drawing;
  3 Controls in .Net Framework之DomainUpDown Control using  System.Collections;
  4 Controls in .Net Framework之DomainUpDown Control using  System.Windows.Forms;
  5 Controls in .Net Framework之DomainUpDown Control using  System.Data;
  6 Controls in .Net Framework之DomainUpDown Control
  7 Controls in .Net Framework之DomainUpDown Control namespace  NETCFDevelopersReference
  8 Controls in .Net Framework之DomainUpDown ControlControls in .Net Framework之DomainUpDown Control {
  9Controls in .Net Framework之DomainUpDown ControlControls in .Net Framework之DomainUpDown Control    /// <summary>
 10Controls in .Net Framework之DomainUpDown Control    /// Summary description for Form1.
 11Controls in .Net Framework之DomainUpDown Control    /// </summary>

 12Controls in .Net Framework之DomainUpDown Control    public class Form1 : System.Windows.Forms.Form
 13Controls in .Net Framework之DomainUpDown ControlControls in .Net Framework之DomainUpDown Control    {
 14Controls in .Net Framework之DomainUpDown Control        private System.Windows.Forms.DomainUpDown domainUpDown1;
 15Controls in .Net Framework之DomainUpDown Control        private System.Windows.Forms.Label label1;
 16Controls in .Net Framework之DomainUpDown Control        private System.Windows.Forms.Label label2;
 17Controls in .Net Framework之DomainUpDown Control        private System.Windows.Forms.MainMenu mainMenu1;
 18Controls in .Net Framework之DomainUpDown Control
 19Controls in .Net Framework之DomainUpDown Control        public Form1()
 20Controls in .Net Framework之DomainUpDown ControlControls in .Net Framework之DomainUpDown Control        {
 21Controls in .Net Framework之DomainUpDown Control            //
 22Controls in .Net Framework之DomainUpDown Control            // Required for Windows Form Designer support
 23Controls in .Net Framework之DomainUpDown Control            //
 24Controls in .Net Framework之DomainUpDown Control            InitializeComponent();
 25Controls in .Net Framework之DomainUpDown Control
 26Controls in .Net Framework之DomainUpDown Control            //
 27Controls in .Net Framework之DomainUpDown Control            // TODO: Add any constructor code after InitializeComponent call
 28Controls in .Net Framework之DomainUpDown Control            //
 29Controls in .Net Framework之DomainUpDown Control        }

 30Controls in .Net Framework之DomainUpDown ControlControls in .Net Framework之DomainUpDown Control        /// <summary>
 31Controls in .Net Framework之DomainUpDown Control        /// Clean up any resources being used.
 32Controls in .Net Framework之DomainUpDown Control        /// </summary>

 33Controls in .Net Framework之DomainUpDown Control        protected override void Dispose( bool disposing )
 34Controls in .Net Framework之DomainUpDown ControlControls in .Net Framework之DomainUpDown Control        {
 35Controls in .Net Framework之DomainUpDown Control            base.Dispose( disposing );
 36Controls in .Net Framework之DomainUpDown Control        }

 37Controls in .Net Framework之DomainUpDown ControlControls in .Net Framework之DomainUpDown Control        #region Windows Form Designer generated code
 38Controls in .Net Framework之DomainUpDown ControlControls in .Net Framework之DomainUpDown Control        /// <summary>
 39Controls in .Net Framework之DomainUpDown Control        /// Required method for Designer support - do not modify
 40Controls in .Net Framework之DomainUpDown Control        /// the contents of this method with the code editor.
 41Controls in .Net Framework之DomainUpDown Control        /// </summary>

 42Controls in .Net Framework之DomainUpDown Control        private void InitializeComponent()
 43Controls in .Net Framework之DomainUpDown ControlControls in .Net Framework之DomainUpDown Control        {
 44Controls in .Net Framework之DomainUpDown Control            this.mainMenu1 = new System.Windows.Forms.MainMenu();
 45Controls in .Net Framework之DomainUpDown Control            this.domainUpDown1 = new System.Windows.Forms.DomainUpDown();
 46Controls in .Net Framework之DomainUpDown Control            this.label1 = new System.Windows.Forms.Label();
 47Controls in .Net Framework之DomainUpDown Control            this.label2 = new System.Windows.Forms.Label();
 48Controls in .Net Framework之DomainUpDown Control            // 
 49Controls in .Net Framework之DomainUpDown Control            // domainUpDown1
 50Controls in .Net Framework之DomainUpDown Control            // 
 51Controls in .Net Framework之DomainUpDown Control            this.domainUpDown1.Location = new System.Drawing.Point(6496);
 52Controls in .Net Framework之DomainUpDown Control            this.domainUpDown1.ReadOnly = true;
 53Controls in .Net Framework之DomainUpDown Control            this.domainUpDown1.Size = new System.Drawing.Size(13620);
 54Controls in .Net Framework之DomainUpDown Control            this.domainUpDown1.SelectedItemChanged += new System.EventHandler(this.domainUpDown1_SelectedItemChanged);
 55Controls in .Net Framework之DomainUpDown Control            // 
 56Controls in .Net Framework之DomainUpDown Control            // label1
 57Controls in .Net Framework之DomainUpDown Control            // 
 58Controls in .Net Framework之DomainUpDown Control            this.label1.Location = new System.Drawing.Point(64136);
 59Controls in .Net Framework之DomainUpDown Control            this.label1.Text = "label1";
 60Controls in .Net Framework之DomainUpDown Control            // 
 61Controls in .Net Framework之DomainUpDown Control            // label2
 62Controls in .Net Framework之DomainUpDown Control            // 
 63Controls in .Net Framework之DomainUpDown Control            this.label2.Location = new System.Drawing.Point(64176);
 64Controls in .Net Framework之DomainUpDown Control            this.label2.Text = "label2";
 65Controls in .Net Framework之DomainUpDown Control            // 
 66Controls in .Net Framework之DomainUpDown Control            // Form1
 67Controls in .Net Framework之DomainUpDown Control            // 
 68Controls in .Net Framework之DomainUpDown Control            this.ClientSize = new System.Drawing.Size(240270);
 69Controls in .Net Framework之DomainUpDown Control            this.Controls.Add(this.label2);
 70Controls in .Net Framework之DomainUpDown Control            this.Controls.Add(this.label1);
 71Controls in .Net Framework之DomainUpDown Control            this.Controls.Add(this.domainUpDown1);
 72Controls in .Net Framework之DomainUpDown Control            this.Menu = this.mainMenu1;
 73Controls in .Net Framework之DomainUpDown Control            this.MinimizeBox = false;
 74Controls in .Net Framework之DomainUpDown Control            this.Text = "Form1";
 75Controls in .Net Framework之DomainUpDown Control            this.Load += new System.EventHandler(this.Form1_Load);
 76Controls in .Net Framework之DomainUpDown Control
 77Controls in .Net Framework之DomainUpDown Control        }

 78Controls in .Net Framework之DomainUpDown Control        #endregion

 79Controls in .Net Framework之DomainUpDown Control
 80Controls in .Net Framework之DomainUpDown ControlControls in .Net Framework之DomainUpDown Control        /// <summary>
 81Controls in .Net Framework之DomainUpDown Control        /// The main entry point for the application.
 82Controls in .Net Framework之DomainUpDown Control        /// </summary>

 83Controls in .Net Framework之DomainUpDown Control
 84Controls in .Net Framework之DomainUpDown Control        static void Main() 
 85Controls in .Net Framework之DomainUpDown ControlControls in .Net Framework之DomainUpDown Control        {
 86Controls in .Net Framework之DomainUpDown Control            Application.Run(new Form1());
 87Controls in .Net Framework之DomainUpDown Control        }

 88Controls in .Net Framework之DomainUpDown Control
 89Controls in .Net Framework之DomainUpDown Control        private void Form1_Load(object sender, System.EventArgs e)
 90Controls in .Net Framework之DomainUpDown ControlControls in .Net Framework之DomainUpDown Control        {
 91Controls in .Net Framework之DomainUpDown Control            domainUpDown1.Items.Add("Item 1");
 92Controls in .Net Framework之DomainUpDown Control            domainUpDown1.Items.Add("Item 2");
 93Controls in .Net Framework之DomainUpDown Control            domainUpDown1.Items.Add("Item 3");
 94Controls in .Net Framework之DomainUpDown Control            domainUpDown1.Items.Add("Item 4");    
 95Controls in .Net Framework之DomainUpDown Control            domainUpDown1.ReadOnly = false;
 96Controls in .Net Framework之DomainUpDown Control        }

 97Controls in .Net Framework之DomainUpDown Control
 98Controls in .Net Framework之DomainUpDown Control        private void domainUpDown1_SelectedItemChanged(object sender, System.EventArgs e)
 99Controls in .Net Framework之DomainUpDown ControlControls in .Net Framework之DomainUpDown Control        {
100Controls in .Net Framework之DomainUpDown Control            label1.Text = domainUpDown1.SelectedIndex.ToString();
101Controls in .Net Framework之DomainUpDown Control            label2.Text = domainUpDown1.Items[domainUpDown1.SelectedIndex].ToString();
102Controls in .Net Framework之DomainUpDown Control        }

103Controls in .Net Framework之DomainUpDown Control    }

104Controls in .Net Framework之DomainUpDown Control}

105 Controls in .Net Framework之DomainUpDown Control